From: Harish Zunjarrao Date: Sat, 20 Mar 2010 00:04:00 +0000 (-0700) Subject: [SCSI] qla2xxx: Free DMA memory only if it is allocated in vendor specific BSG command X-Git-Tag: v2.6.35-rc1~470^2^2~111 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5459083af5b6e01796797edd12555ab586c6092;p=pandora-kernel.git [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 Signed-off-by: Giridhar Malavali Signed-off-by: James Bottomley --- Reading git-diff-tree failed