mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04:00
Rick McNeal from LSI identified a panic in selinux_netlbl_inode_permission() caused by a certain sequence of SUNRPC operations. The problem appears to be due to the lack of NULL pointer checking in the function; this patch adds the pointer checks so the function will exit safely in the cases where the socket is not completely initialized. Signed-off-by: Paul Moore <[email protected]> Signed-off-by: James Morris <[email protected]>