Skip to content
Commit 7f76dcd7 authored by Arjun Vynipadath's avatar Arjun Vynipadath Committed by Greg Kroah-Hartman
Browse files

cxgb4/cxgb4vf: Fix mac_hlist initialization and free

[ Upstream commit b539ea60 ]

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: 24357e06

 ("cxgb4vf: fix memleak in mac_hlist initialization")
Signed-off-by: default avatarArjun Vynipadath <arjun@chelsio.com>
Signed-off-by: default avatarCasey Leedom <leedom@chelsio.com>
Signed-off-by: default avatarGanesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 810ed91e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment