Re: [patch] [SCSI] mpt3sas: move dereference under check

2013-03-14 Thread Dan Carpenter
On Thu, Mar 14, 2013 at 06:52:35PM +0530, Reddy, Sreekanth wrote: Hi Dan Carpenter, While analyzing this patch, I have added some debugging prints to print the address referenced by the IOC-sense_dma_pool before and after pci_pool_free() API and I have observed that the address referenced

[patch] [SCSI] mpt3sas: move dereference under check

2013-03-11 Thread Dan Carpenter
pci_pool_free() dereferences ioc-sense_dma_pool but we check it for NULL on the following line. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.c b/drivers/scsi/mpt3sas/mpt3sas_base.c index 1836003..06a84ef 100644 ---