From: Tilman Schmidt Date: Sun, 5 Apr 2009 06:39:33 +0000 (+0000) Subject: gigaset: in file ops, check for device disconnect before anything else X-Git-Tag: v2.6.30-rc1~137^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51370e5b21c5825cff7482e1c38f4e7c5dab3e2b;p=pandora-kernel.git 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 Reported-by: Paul Bolle Tested-by: Paul Bolle Signed-off-by: David S. Miller --- Reading git-diff-tree failed