nfp: fix memory leak on FW load error
authorJakub Kicinski <jakub.kicinski@netronome.com>
Wed, 31 May 2017 15:06:51 +0000 (08:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 May 2017 21:58:13 +0000 (17:58 -0400)
commit47eaa23b4c27d735cb797be71c711a99f99e9ff6
treeb938a4f6c4eaaa6eaf9ee3088aaa4742a70489bc
parentc66a9cf408037781fc1984bc60785049b453d8a4
nfp: fix memory leak on FW load error

Free management FW info when app FW load failed.

Fixes: eefbde7e1002 ("nfp: add hwmon support")
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_main.c