net/nfp: fix memory allocation
authorAlejandro Lucero <alejandro.lucero@netronome.com>
Wed, 8 Nov 2017 12:07:14 +0000 (12:07 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 10 Nov 2017 09:31:24 +0000 (09:31 +0000)
commit965f0aaa7c59355495a1035dd7b991d47a9cb24e
treeca2bbb5e32d69a9374a19fb49993a952d8ac2969
parent9b634927a71d555ec7314e177d8698347b5cc8e0
net/nfp: fix memory allocation

If the function actually returns a null value, a null pointer
dereference will occur.

Coverity issue: 195013
Fixes: dd63df2bfff3 ("net/nfp: add NSP symbol resolution command")

Signed-off-by: Alejandro Lucero <alejandro.lucero@netronome.com>
drivers/net/nfp/nfp_nspu.c