summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/nvs.c
diff options
context:
space:
mode:
authorChristophe Jaillet2017-08-27 08:30:34 +0200
committerDan Williams2017-08-30 16:23:44 +0200
commited36b4dba54a421ce5551638f6a9790b2c2116b1 (patch)
treeba708389814aa662c54bae7d5cdbe75c2c6f200e /drivers/acpi/nvs.c
parentlibnvdimm, label: fix index block size calculation (diff)
downloadkernel-qcow2-linux-ed36b4dba54a421ce5551638f6a9790b2c2116b1.tar.gz
kernel-qcow2-linux-ed36b4dba54a421ce5551638f6a9790b2c2116b1.tar.xz
kernel-qcow2-linux-ed36b4dba54a421ce5551638f6a9790b2c2116b1.zip
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>
Diffstat (limited to 'drivers/acpi/nvs.c')
0 files changed, 0 insertions, 0 deletions