Revision c7a841f3aca469187db76842676951a672fd27d1 authored by James Smart on 14 November 2010, 16:12:04 UTC, committed by James Bottomley on 09 December 2010, 15:41:14 UTC
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>
1 parent 057f02a
File | Mode | Size |
---|---|---|
.gitignore | -rw-r--r-- | 151 bytes |
Kconfig | -rw-r--r-- | 4.8 KB |
Makefile | -rw-r--r-- | 2.2 KB |
gen_init_cpio.c | -rw-r--r-- | 12.3 KB |
initramfs_data.S | -rw-r--r-- | 1.3 KB |
Computing file changes ...