net/nfp: fix resource leak
authorAlejandro Lucero <alejandro.lucero@netronome.com>
Wed, 8 Nov 2017 12:14:13 +0000 (12:14 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 10 Nov 2017 09:31:24 +0000 (09:31 +0000)
commiteb04bc1052e10188ac709658a5b794bdd31e9aa9
tree4c59836b66c178457bf4ebab634b969856b75dc3
parent965f0aaa7c59355495a1035dd7b991d47a9cb24e
net/nfp: fix resource leak

File descriptor is not released in any potential exit path
inside the function.

Coverity issue: 195018
Fixes: f37d8a4b67b2 ("net/nfp: add NSP FW upload command")

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