Re: [PATCH 2/3] gigaset: in file ops, check for device disconnectbefore anything else

From: David Miller
Date: Mon Apr 06 2009 - 20:44:22 EST


From: Tilman Schmidt <tilman@xxxxxxx>
Date: Sun, 5 Apr 2009 18:39:33 +0200 (CEST)

> 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@xxxxxxx>
> Reported-by: Paul Bolle <pebolle@xxxxxxxxxx>
> Tested-by: Paul Bolle <pebolle@xxxxxxxxxx>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/