Skip to content
Commit 4f5e54bd authored by Basil Gunn's avatar Basil Gunn Committed by Greg Kroah-Hartman
Browse files

ax25: Fix segfault after sock connection timeout



[ Upstream commit 8a367e74 ]

The ax.25 socket connection timed out & the sock struct has been
previously taken down ie. sock struct is now a NULL pointer. Checking
the sock_flag causes the segfault.  Check if the socket struct pointer
is NULL before checking sock_flag. This segfault is seen in
timed out netrom connections.

Please submit to -stable.

Signed-off-by: default avatarBasil Gunn <basil@pacabunga.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 062b7f35
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment