Re: [PATCH] libnvdimm, btt: check memory allocation failure

2017-08-29 Thread Vishal Verma
On 08/27, Christophe JAILLET wrote: > Check memory allocation failures and return -ENOMEM in such cases, as > already done few lines below for another memory allocation. > > This avoids NULL pointers dereference. > > Fixes: 14e494542636 ("libnvdimm, btt: BTT updates for UEFI 2.7 format") >

Re: [PATCH] libnvdimm, btt: check memory allocation failure

2017-08-29 Thread Vishal Verma
On 08/27, Christophe JAILLET wrote: > Check memory allocation failures and return -ENOMEM in such cases, as > already done few lines below for another memory allocation. > > This avoids NULL pointers dereference. > > Fixes: 14e494542636 ("libnvdimm, btt: BTT updates for UEFI 2.7 format") >

[PATCH] libnvdimm, btt: check memory allocation failure

2017-08-27 Thread Christophe JAILLET
Check memory allocation failures and return -ENOMEM in such cases, as already done few lines below for another memory allocation. This avoids NULL pointers dereference. Fixes: 14e494542636 ("libnvdimm, btt: BTT updates for UEFI 2.7 format") Signed-off-by: Christophe JAILLET

[PATCH] libnvdimm, btt: check memory allocation failure

2017-08-27 Thread Christophe JAILLET
Check memory allocation failures and return -ENOMEM in such cases, as already done few lines below for another memory allocation. This avoids NULL pointers dereference. Fixes: 14e494542636 ("libnvdimm, btt: BTT updates for UEFI 2.7 format") Signed-off-by: Christophe JAILLET ---