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

From: David Miller
Date: Tue Aug 23 2016 - 00:05:41 EST


From: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
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 at virtual address 00000004
>
> To fix this, add a check to avoid dereferencing ic_dev if it is still
> NULL.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
> Fixes: 2647cffb2bc6fbed ("net: ipconfig: Support using "delayed" DHCP replies")

Applied.