Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24
b: refs/heads/master
c: 7e5c6bc
h: refs/heads/master
v: v3
  • Loading branch information
Jean Tourrilhes authored and Linus Torvalds committed Apr 16, 2005
1 parent ff27717 commit 61179b2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6775cab98b89b2caa10dce4b07e2c81999e45517
refs/heads/master: 7e5c6bc0a600c49e5922591ad41ff41987f54eb4
11 changes: 9 additions & 2 deletions trunk/net/irda/irda_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,15 @@ void irda_device_set_media_busy(struct net_device *dev, int status)

self = (struct irlap_cb *) dev->atalk_ptr;

IRDA_ASSERT(self != NULL, return;);
IRDA_ASSERT(self->magic == LAP_MAGIC, return;);
/* Some drivers may enable the receive interrupt before calling
* irlap_open(), or they may disable the receive interrupt
* after calling irlap_close().
* The IrDA stack is protected from this in irlap_driver_rcv().
* However, the driver calls directly the wrapper, that calls
* us directly. Make sure we protect ourselves.
* Jean II */
if (!self || self->magic != LAP_MAGIC)
return;

if (status) {
self->media_busy = TRUE;
Expand Down

0 comments on commit 61179b2

Please sign in to comment.