diff options
author | Basil Gunn <basil@pacabunga.com> | 2017-01-14 12:18:55 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-02-04 09:45:09 +0100 |
commit | 4f5e54bdd052cb7b6f754d6e4ced0367b11af3ed (patch) | |
tree | 1572752aeb627117b7b6a82a437ac5126aa8c3bd /net/core/dev.c | |
parent | 062b7f35ff6caf2f4ed0ee99926944aad1e1ceb1 (diff) |
ax25: Fix segfault after sock connection timeout
[ Upstream commit 8a367e74c0120ef68c8c70d5a025648c96626dff ]
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: Basil Gunn <basil@pacabunga.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/core/dev.c')
0 files changed, 0 insertions, 0 deletions