summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sg.c
diff options
context:
space:
mode:
authorAnirban Chakraborty <anirban.chakraborty@qlogic.com>2009-09-28 22:52:58 +0200
committerJames Bottomley <James.Bottomley@suse.de>2009-10-02 21:13:04 +0200
commitc7922a911c42c5a8bdee6cc75eb6bd66937d4217 (patch)
tree5afe423e0e91624289b6a09af8268cc6896994d3 /drivers/scsi/sg.c
parent[SCSI] st: fix possible memory use after free after MTSETBLK ioctl (diff)
downloadlinux-c7922a911c42c5a8bdee6cc75eb6bd66937d4217.tar.xz
linux-c7922a911c42c5a8bdee6cc75eb6bd66937d4217.zip
[SCSI] qla2xxx: Fix NULL ptr deref bug in fail path during queue create
Current code attempts to clean up resources when queue create fails and there it invokes queue free call with a (NULL) pointer to the queue which could not be allocated in the first place. Fix it by returning directly without invoking the queue free call as no resources has been allocated at that point of time. Reported-by: Jiri Slaby <jirislaby@gmail.com> Signed-off-by: Anirban Chakraborty <anirban.chakraborty@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/sg.c')
0 files changed, 0 insertions, 0 deletions