nfp: fix nfp_cpp_read()/nfp_cpp_write() error paths
authorJakub Kicinski <jakub.kicinski@netronome.com>
Wed, 22 Mar 2017 00:59:16 +0000 (17:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Mar 2017 19:59:08 +0000 (12:59 -0700)
commit7d2da6038218ea08f3df74046f32bdff3589cf00
tree4b3fbfd96804dbb386fc589bc7a08842bcf4df3b
parent1bb665e3dd67f6f3477c55c2b247b42b1a5bfc95
nfp: fix nfp_cpp_read()/nfp_cpp_write() error paths

When acquiring an area fails we can't call function doing both
release and free.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c