net/nfp: fix resource leak on errors
authorAlejandro Lucero <alejandro.lucero@netronome.com>
Mon, 8 Apr 2019 11:02:04 +0000 (12:02 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 12 Apr 2019 09:02:02 +0000 (11:02 +0200)
commit701e0bfa84f59df16f51347f71f4ade56347b645
tree10af13789ec92aff821234616214fb41e0de053a
parent8539ec0a40a332da568f2bfac4419f6f9116668e
net/nfp: fix resource leak on errors

Not closing the socket implies a resource leak.

Coverity issue: 336865
Fixes: 29a62d1476b6 ("net/nfp: add CPP bridge as service")
Cc: stable@dpdk.org
Signed-off-by: Alejandro Lucero <alejandro.lucero@netronome.com>
drivers/net/nfp/nfp_net.c