Re: [Patch net] llc: fix NULL pointer deref for SOCK_ZAPPED

2018-04-22 Thread David Miller
From: Cong Wang Date: Thu, 19 Apr 2018 21:54:34 -0700 > 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: f7e43672683b ("llc: hold llc_sap before release_sock()") > Reported-by:

[Patch net] llc: fix NULL pointer deref for SOCK_ZAPPED

2018-04-19 Thread Cong Wang
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: f7e43672683b ("llc: hold llc_sap before release_sock()") Reported-by: kernel test robot Signed-off-by: Cong Wang ---