net/nfp: fix memory leak
authorAlejandro Lucero <alejandro.lucero@netronome.com>
Mon, 8 Apr 2019 10:19:29 +0000 (11:19 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 12 Apr 2019 09:02:02 +0000 (11:02 +0200)
commit318e737d2d04899733539c63aab84bf0b2cf0552
treef7e7c749e95b869858a0d26352efdefe19ca014d
parent0fec453d583c77fd0e7fb61a0284dc261f2b50e3
net/nfp: fix memory leak

If errors, release the allocated structure.

Coverity issue: 277222
Fixes: c7e9729da6b5 ("net/nfp: support CPP")
Cc: stable@dpdk.org
Signed-off-by: Alejandro Lucero <alejandro.lucero@netronome.com>
drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c