From: Dan Carpenter Date: Thu, 17 May 2012 07:13:40 +0000 (+0300) Subject: [SCSI] qla2xxx: don't free pool that wasn't allocated X-Git-Tag: v3.5-rc1~25^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=841f97bffc11daaef9eb28d201be25b1509db97d;p=pandora-kernel.git [SCSI] qla2xxx: don't free pool that wasn't allocated In the original code, if dma_pool_alloc() fails then we call dma_pool_free(). It causes an error, possibly a NULL dereference. Signed-off-by: Dan Carpenter Acked-by: Chad Dupuis Signed-off-by: James Bottomley --- Reading git-diff-tree failed