]> 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)
commit235538b20ad997e66f13a91cd1f19ceea8fc6925
treed80fda18c6c416690f648faedf85e23966246165
parente9d9604daa8a440959c093f2549b77d8768b16f7
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: 16a67bf3c122 ("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