Re: [PATCH 1/2] mpt3sas - set num_phys after allocating phy[] space

2016-05-27 Thread Sreekanth Reddy
Hi, This patch looks good. Please consider this patch as Ack-by: Sreekanth Reddy Thanks, Sreekanth On Thu, May 26, 2016 at 12:44 AM, Joe Lawrence wrote: > In _scsih_sas_host_add, the number of HBA phys are determined and then > later used to allocate an array of struct _sas_phy's. If the rou

[PATCH 1/2] mpt3sas - set num_phys after allocating phy[] space

2016-05-25 Thread Joe Lawrence
In _scsih_sas_host_add, the number of HBA phys are determined and then later used to allocate an array of struct _sas_phy's. If the routine sets ioc->sas_hba.num_phys, but then fails to allocate the ioc->sas_hba.phy array (by kcalloc error or other intermediate error/exit path), ioc->sas_hba is l