net/nfp: fix dangling pointer on probe failure
authorYunjian Wang <wangyunjian@huawei.com>
Tue, 7 Apr 2020 11:37:27 +0000 (19:37 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:06 +0000 (13:57 +0200)
commit9d5996c01de06fd0c03bc74d58c44f8c29fe7a97
treedc776a289790b9f96acc195584f05d295e925ef6
parent735d826e6c19c4ab8025876ee4bfb60a96cdbc34
net/nfp: fix dangling pointer on probe failure

When nfp_pf_create_dev() is cleaning up, it does not correctly set
the dev_private variable to NULL, which will lead to a double free.

Fixes: ef28aa96e53b ("net/nfp: support multiprocess")
Cc: stable@dpdk.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Acked-by: Heinrich Kuhn <heinrich.kuhn@netronome.com>
drivers/net/nfp/nfp_net.c