]> git.baikalelectronics.ru Git - kernel.git/commit
gigaset: in file ops, check for device disconnect before anything else
authorTilman Schmidt <tilman@imap.cc>
Sun, 5 Apr 2009 06:39:33 +0000 (06:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Apr 2009 00:07:57 +0000 (17:07 -0700)
commitdcabdb620a5bb3fd5b2a14746d61cf08a3349916
treea20d0e46399d92a72f0056abdb025c63afae53f6
parentba7c03d668f29fa5dccccdaf99f9023835a9a4b1
gigaset: in file ops, check for device disconnect before anything else

When the device is disconnected, the dev structure goes away, so
trying to report another error via dev_printk is bound to oops.
To avoid that, first check whether the device is still connected
and return quietly if it isn't.

Impact: error handling

Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Reported-by: Paul Bolle <pebolle@tiscali.nl>
Tested-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/gigaset/interface.c