]> git.baikalelectronics.ru Git - kernel.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)
committerAntonio Quartulli <antonio@meshcoding.com>
Tue, 4 Aug 2015 22:31:46 +0000 (00:31 +0200)
commit9bec1bdc330e4df8770e142fe7e81e5a68869f48
treed80fda18c6c416690f648faedf85e23966246165
parent791082cd40a45ce4c6fb17723d14dbf966a9123a
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: e7aa916c2284 ("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