net/ice: fix wild pointer
authorShougang Wang <shougangx.wang@intel.com>
Wed, 13 Nov 2019 01:37:58 +0000 (01:37 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 20 Nov 2019 16:36:05 +0000 (17:36 +0100)
commit1ad37a2c580b5ef6e9eae17156322d69e62056bd
tree2e7ca96cb4ac80dd1445b531feea6d6a816c046d
parent01af3d0a416130e91c159147f590f9d07da4e767
net/ice: fix wild pointer

To avoid wild pointer, pointers should be set to NULL after free them.

Fixes: 1a2fc1799f09 ("net/ice: reject duplicated flow for flow director")
Fixes: 84dc7a95a2d3 ("net/ice: enable flow director engine")
Fixes: 0f880c3df192 ("net/ice: add flow director counter resource init/release")

Signed-off-by: Shougang Wang <shougangx.wang@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/ice/ice_fdir_filter.c