mirror of
https://github.com/torvalds/linux.git
synced 2026-12-03 03:52:37 +00:00
llcp_sock_getname() might get called before the LLCP socket was created.
This condition isn't checked, and llcp_sock_getname will simply deref a
NULL ptr in that case.
This exists starting with d646960 ("NFC: Initial LLCP support").
Signed-off-by: Sasha Levin <[email protected]>
Signed-off-by: John W. Linville <[email protected]>