summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/gdth_ioctl.h
diff options
context:
space:
mode:
authorVaughan Cao <vaughan.cao@oracle.com>2013-08-29 04:00:38 +0200
committerJames Bottomley <JBottomley@Parallels.com>2013-09-03 16:28:09 +0200
commite32c9e6300e3af659cbfe45e90a1e7dcd3572ada (patch)
tree2e924a5838335cbfca0cf52a0add8e38801773e2 /drivers/scsi/gdth_ioctl.h
parent[SCSI] sg: no need sg_open_exclusive_lock (diff)
downloadlinux-e32c9e6300e3af659cbfe45e90a1e7dcd3572ada.tar.xz
linux-e32c9e6300e3af659cbfe45e90a1e7dcd3572ada.zip
[SCSI] sg: checking sdp->detached isn't protected when open
@detached is set under the protection of sg_index_lock. Without getting the lock, new sfp will be added during sg removal and there is no chance for it to be picked out. So check with sg_index_lock held in sg_add_sfp(). Signed-off-by: Vaughan Cao <vaughan.cao@oracle.com> Acked-by: Douglas Gilbert <dgilbert@interlog.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/gdth_ioctl.h')
0 files changed, 0 insertions, 0 deletions