aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2009-09-23 16:15:35 +0200
committerJames Bottomley <James.Bottomley@suse.de>2009-12-04 12:00:51 -0600
commit03b147083a2f9a2a3fbbd2505fa88ffa3c6ab194 (patch)
tree9d0005b45bfff8d9ec23857d4e317311d6875d1b /include/scsi
parent[SCSI] 3w-sas: Add new driver for LSI 3ware 9750 (diff)
downloadlinux-dev-03b147083a2f9a2a3fbbd2505fa88ffa3c6ab194.tar.xz
linux-dev-03b147083a2f9a2a3fbbd2505fa88ffa3c6ab194.zip
[SCSI] scsi_lib: fix potential NULL dereference
Stanse found a potential NULL dereference in scsi_kill_request. Instead of triggering BUG() in 'if (unlikely(cmd == NULL))' branch, the kernel will Oops earlier on cmd dereference. Move the dereferences after the if. Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'include/scsi')
0 files changed, 0 insertions, 0 deletions