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)
committerAntonio Quartulli <antonio@meshcoding.com>
Tue, 4 Aug 2015 22:31:46 +0000 (00:31 +0200)
commit354136bcc3c4f40a2813bba8f57ca5267d812d15
treed80fda18c6c416690f648faedf85e23966246165
parentf202a666e933f3c7557126d63833a6a3b577ac15
batman-adv: fix kernel crash due to missing NULL checks

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>
net/batman-adv/soft-interface.c
net/batman-adv/translation-table.c