]> www.infradead.org Git - users/jedix/linux-maple.git/commit
batman-adv: fix kernel crash due to missing NULL checks
authorMarek Lindner <mareklindner@neomailbox.ch>
Tue, 9 Jun 2015 13:24:36 +0000 (21:24 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Oct 2015 21:43:20 +0000 (14:43 -0700)
commitb046d646f1cbe1453b4ae63dc749e62f6e01c9c7
tree397fd8b8f996103b129ba3e737ea7ee8bd16c941
parent1fc6fc1d5b9dc9c878b2b1c044e079b193e6cb92
batman-adv: fix kernel crash due to missing NULL checks

commit 354136bcc3c4f40a2813bba8f57ca5267d812d15 upstream.

batadv_softif_vlan_get() may return NULL which has to be verified
by the caller.

Fixes: 35df3b298fc8 ("batman-adv: fix TT VLAN inconsistency on VLAN re-add")
Reported-by: Ryan Thompson <ryan@eero.com>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/batman-adv/soft-interface.c
net/batman-adv/translation-table.c