linux/drivers/usb/atm
Simon Arlott 9fc950d322 USB: cxacru: check device isn't being removed during sysfs calls
It is possible for usb_get_intfdata() to return NULL if
sysfs is accessed while the module is being unloaded or
the device is being removed.

Move the access code to an inline function in usbatm.h,
and return -ENODEV if any of the pointers are NULL.

It should not be possible for the instance data or atm
device to be invalid until after unbind() completes and
the sysfs attributes have been removed.

Signed-off-by: Simon Arlott <simon@fire.lp0.eu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-03-02 14:52:58 -08:00
..
cxacru.c USB: cxacru: check device isn't being removed during sysfs calls 2010-03-02 14:52:58 -08:00
Kconfig USB: Remove redundant dependencies on USB_ATM. 2008-05-02 10:25:57 -07:00
Makefile [PATCH] USB: Eagle and ADI 930 usb adsl modem driver 2006-01-04 13:48:29 -08:00
speedtch.c USB: Speedtouch: add pre_reset and post_reset routines 2008-10-22 10:05:28 -07:00
ueagle-atm.c firmware_class: make request_firmware_nowait more useful 2009-12-11 11:24:52 -08:00
usbatm.c USB: cxacru: check device isn't being removed during sysfs calls 2010-03-02 14:52:58 -08:00
usbatm.h USB: cxacru: check device isn't being removed during sysfs calls 2010-03-02 14:52:58 -08:00
xusbatm.c USB: remove warn() macro from usb drivers 2008-10-17 14:41:09 -07:00