Re: [PATCH] mpt3sas: fix possible NULL dereference

From: Martin K. Petersen
Date: Thu Apr 14 2016 - 22:44:18 EST


>>>>> "Sudip" == Sudip Mukherjee <sudipm.mukherjee@xxxxxxxxx> writes:

Sudip> We are dereferencing ioc->sense_dma_pool in pci_pool_free() and
Sudip> after that we are checking if it is NULL, before calling
Sudip> pci_pool_destroy(). Lets check if it is NULL before calling both
Sudip> pci_pool_free() and pci_pool_destroy().

Broadcom folks, please review.

--
Martin K. Petersen Oracle Linux Engineering