From: Roland Dreier Date: Tue, 18 Oct 2005 21:14:56 +0000 (-0700) Subject: [IB] Fail sysfs queries after device is unregistered X-Git-Tag: v2.6.15-rc1~731^2~21^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba8e9310244180bbc820e865d2e4378809b4a443;p=pandora-kernel.git [IB] Fail sysfs queries after device is unregistered 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 --- Reading git-diff-tree failed