[IB] Fail sysfs queries after device is unregistered
authorRoland Dreier <rolandd@cisco.com>
Tue, 18 Oct 2005 21:14:56 +0000 (14:14 -0700)
committerRoland Dreier <rolandd@cisco.com>
Tue, 18 Oct 2005 21:14:56 +0000 (14:14 -0700)
We keep IB device structures around until the last sysfs reference is
gone, but we shouldn't ask the low-level driver to do anything after
the LLD unregisters the device.  To handle this, check the reg_state
field and just fail sysfs show() requests if the device has already
been unregistered.

Signed-off-by: Roland Dreier <rolandd@cisco.com>

No differences found