diff options
author | Arjun Vynipadath <arjun@chelsio.com> | 2018-11-20 12:11:39 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-20 10:29:36 -0800 |
commit | b539ea60f5043b9acd7562f04fa2117f18776cbb (patch) | |
tree | 2026ef28250849c40339e2dc647c6adbfdc39491 /net/switchdev/switchdev.c | |
parent | ade9628ed049242fac5dd94730881f8c5e244634 (diff) |
cxgb4/cxgb4vf: Fix mac_hlist initialization and free
Null pointer dereference seen when cxgb4vf driver is unloaded
without bringing up any interfaces, moving mac_hlist initialization
to driver probe and free the mac_hlist in remove to fix the issue.
Fixes: 24357e06ba51 ("cxgb4vf: fix memleak in mac_hlist initialization")
Signed-off-by: Arjun Vynipadath <arjun@chelsio.com>
Signed-off-by: Casey Leedom <leedom@chelsio.com>
Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions