]> bbs.cooldavid.org Git - net-next-2.6.git/commit
[SCSI] mvsas: fix potential NULL dereference
authorJiri Slaby <jslaby@suse.cz>
Tue, 22 Jun 2010 11:42:02 +0000 (13:42 +0200)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 27 Jul 2010 17:03:53 +0000 (12:03 -0500)
commit24ae163ed33d2b8a70d2f0b1947b401d0a8e8719
tree122060af30c9072a936e5fb86ebf5a617b522fe8
parent97009a29e8c999def2d1e9ef253c226daf9541af
[SCSI] mvsas: fix potential NULL dereference

Stanse found that in mvs_abort_task, mvi_dev is dereferenced earlier
than tested for being NULL. Move the assignment below the test.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/mvsas/mv_sas.c