diff options
| author | Geert Uytterhoeven <[email protected]> | 2016-08-22 13:01:03 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2016-08-23 04:04:41 +0000 |
| commit | 1ae292a2457cd692828da2be87cb967260993ad0 (patch) | |
| tree | 7f8e6b2718168f811a8aebb437c7c7ef62d33662 /net/strparser/strparser.c | |
| parent | Merge tag 'batadv-next-for-davem-20160822' of git://git.open-mesh.org/linux-m... (diff) | |
| download | kernel-1ae292a2457cd692828da2be87cb967260993ad0.tar.gz kernel-1ae292a2457cd692828da2be87cb967260993ad0.zip | |
net: ipconfig: Fix NULL pointer dereference on RARP/BOOTP/DHCP timeout
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 <[email protected]>
Fixes: 2647cffb2bc6fbed ("net: ipconfig: Support using "delayed" DHCP replies")
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/strparser/strparser.c')
0 files changed, 0 insertions, 0 deletions
