]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[SCSI] qla2xxx: Free DMA memory only if it is allocated in vendor specific BSG command
authorHarish Zunjarrao <harish.zunjarrao@qlogic.com>
Sat, 20 Mar 2010 00:04:00 +0000 (17:04 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Sun, 11 Apr 2010 14:45:50 +0000 (09:45 -0500)
commitd5459083af5b6e01796797edd12555ab586c6092
tree5384b2bd1bc40ea0e5ec6aefc0b9d6e74f9ae36a
parent09ff701a177b116c6c15b6e501e58fbfb306b424
[SCSI] qla2xxx: Free DMA memory only if it is allocated in vendor specific BSG command

The qla84xx_mgmt_cmd function supports multiple subcommands.
Some subcommands require DMA memory and some do not.
Therefore check before freeing DMA memory whether it is allocated or not.

Signed-off-by: Harish Zunjarrao <harish.zunjarrao@qlogic.com>
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/qla2xxx/qla_bsg.c