Skip to content
Commit 0c2d5fe3 authored by Cong Wang's avatar Cong Wang Committed by Sasha Levin
Browse files

llc: fix NULL pointer deref for SOCK_ZAPPED

[ Upstream commit 3a04ce71 ]

For SOCK_ZAPPED socket, we don't need to care about llc->sap,
so we should just skip these refcount functions in this case.

Fixes: f7e43672

 ("llc: hold llc_sap before release_sock()")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarCong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <alexander.levin@microsoft.com>
parent 38ccde7e
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