diff options
author | James Smart <james.smart@emulex.com> | 2010-11-14 11:12:04 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-12-09 09:41:14 -0600 |
commit | c7a841f3aca469187db76842676951a672fd27d1 (patch) | |
tree | 6819d796270f9b4c5eb4cae374a69ab1988d384a /drivers/spi | |
parent | 057f02a38e67a944a2d0b89bb0111efb9dbe6e6e (diff) | |
download | linux-3.10-c7a841f3aca469187db76842676951a672fd27d1.tar.gz linux-3.10-c7a841f3aca469187db76842676951a672fd27d1.tar.bz2 linux-3.10-c7a841f3aca469187db76842676951a672fd27d1.zip |
[SCSI] bsg: correct fault if queue object removed while dev_t open
This patch corrects an issue in bsg that results in a general protection
fault if an LLD is removed while an application is using an open file
handle to a bsg device, and the application issues an ioctl. The fault
occurs because the class_dev is NULL, having been cleared in
bsg_unregister_queue() when the driver was removed. With this
patch, a check is made for the class_dev, and the application
will receive ENXIO if the related object is gone.
Signed-off-by: Carl Lajeunesse <carl.lajeunesse@emulex.com>
Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/spi')
0 files changed, 0 insertions, 0 deletions