Re: [PATCH 1/1] ax25: Fix segfault after sock connection timeout

2017-01-16 Thread David Miller
From: Basil Gunn Date: Sat, 14 Jan 2017 12:18:55 -0800 > 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

[PATCH 1/1] ax25: Fix segfault after sock connection timeout

2017-01-14 Thread Basil Gunn
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. Pl