diff options
author | Christophe Jaillet <christophe.jaillet@wanadoo.fr> | 2017-08-27 08:30:34 +0200 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2017-08-30 07:23:44 -0700 |
commit | ed36b4dba54a421ce5551638f6a9790b2c2116b1 (patch) | |
tree | ba708389814aa662c54bae7d5cdbe75c2c6f200e /crypto/seed.c | |
parent | 02881768695da29772f6f9e0d857a8637c6b0e90 (diff) | |
download | linux-ed36b4dba54a421ce5551638f6a9790b2c2116b1.tar.bz2 |
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 'crypto/seed.c')
0 files changed, 0 insertions, 0 deletions