]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sym53c8xx: Fix NULL pointer dereference in slave_destroy
authorStratos Psomadakis <psomas@gentoo.org>
Sun, 4 Dec 2011 00:23:54 +0000 (02:23 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 11 Feb 2012 14:38:32 +0000 (15:38 +0100)
commit64494d9f150b905efc2a9112e1cb3777f7fcabba
treea911f3bfbcf6b2205d61693f61188d9de71478fd
parente9a7f3230d9ac4824c4692aa0b9b7bd6ad1667c5
sym53c8xx: Fix NULL pointer dereference in slave_destroy

commit cced5041ed5a2d1352186510944b0ddfbdbe4c0b upstream.

sym53c8xx_slave_destroy unconditionally assumes that sym53c8xx_slave_alloc has
succesesfully allocated a sym_lcb. This can lead to a NULL pointer dereference
(exposed by commit 4e6c82b).

Signed-off-by: Stratos Psomadakis <psomas@gentoo.org>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/scsi/sym53c8xx_2/sym_glue.c