git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f619106
)
[SCSI] scsi_lib: fix potential NULL dereference
author
Jiri Slaby
<jirislaby@gmail.com>
Wed, 23 Sep 2009 14:15:35 +0000
(16:15 +0200)
committer
James Bottomley
<James.Bottomley@suse.de>
Fri, 4 Dec 2009 18:00:51 +0000
(12:00 -0600)
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>
No differences found