diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2016-03-10 17:51:11 +0530 |
---|---|---|
committer | Jon Mason <jdmason@kudzu.us> | 2016-03-17 20:52:15 -0400 |
commit | 2572c7fb4e4b941af9a0206ac8093d362ae6d371 (patch) | |
tree | 108abf8ced1b14f933e9415f48df1dbb99c2bac6 /lib/genalloc.c | |
parent | ee5f750f1c9d675028ecedc5439b7171f6647cb8 (diff) |
ntb: fix possible NULL dereference
kmalloc can fail and we should check for NULL before using the pointer
returned by kmalloc.
Signed-off-by: Sudip Mukherjee <sudip.mukherjee@codethink.co.uk>
Acked-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
Diffstat (limited to 'lib/genalloc.c')
0 files changed, 0 insertions, 0 deletions