Re: [PATCH] net: ipconfig: Fix NULL pointer dereference on RARP/BOOTP/DHCP timeout

2016-08-22 Thread David Miller
From: Geert Uytterhoeven Date: Mon, 22 Aug 2016 15:01:03 +0200 > If no RARP, BOOTP, or DHCP response is received, ic_dev is never set, > causing a NULL pointer dereference in ic_close_devs(): > > Sending DHCP requests .. timed out! > Unable to handle kernel NULL pointer dereference a

[PATCH] net: ipconfig: Fix NULL pointer dereference on RARP/BOOTP/DHCP timeout

2016-08-22 Thread Geert Uytterhoeven
If no RARP, BOOTP, or DHCP response is received, ic_dev is never set, causing a NULL pointer dereference in ic_close_devs(): Sending DHCP requests .. timed out! Unable to handle kernel NULL pointer dereference at virtual address 0004 To fix this, add a check to avoid dereferencing