From: Jiri Slaby Date: Wed, 23 Sep 2009 14:15:35 +0000 (+0200) Subject: [SCSI] scsi_lib: fix potential NULL dereference X-Git-Tag: v2.6.33-rc1~344^2~125 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03b147083a2f9a2a3fbbd2505fa88ffa3c6ab194;p=pandora-kernel.git [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 Signed-off-by: James Bottomley --- Reading git-diff-tree failed