Searched hist:ed36b4db (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/nvdimm/ |
H A D | btt.c | ed36b4db Sun Aug 27 01:30:34 CDT 2017 Christophe Jaillet <christophe.jaillet@wanadoo.fr> libnvdimm, btt: check memory allocation failure
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.
Cc: <stable@vger.kernel.org> Fixes: 14e494542636 ("libnvdimm, btt: BTT updates for UEFI 2.7 format") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Reviewed-by: Vishal Verma <vishal.l.verma@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com> ed36b4db Sun Aug 27 01:30:34 CDT 2017 Christophe Jaillet <christophe.jaillet@wanadoo.fr> libnvdimm, btt: check memory allocation failure 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. Cc: <stable@vger.kernel.org> Fixes: 14e494542636 ("libnvdimm, btt: BTT updates for UEFI 2.7 format") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Reviewed-by: Vishal Verma <vishal.l.verma@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
|