[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)
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>

No differences found