]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: fix indirect hard_iface NULL dereference
authorMarek Lindner <mareklindner@neomailbox.ch>
Wed, 23 Apr 2014 19:44:25 +0000 (03:44 +0800)
committerAntonio Quartulli <antonio@meshcoding.com>
Thu, 15 May 2014 18:03:16 +0000 (20:03 +0200)
commit134e766ca638e6c09f22b1f3e8adbf9b562ea27c
tree25f87cddc1fc4d1ac36fc28fe7f33959335d40e7
parente2b801faf5989515133a9a5c1ead8ac200887ded
batman-adv: fix indirect hard_iface NULL dereference

If hard_iface is NULL and goto out is made batadv_hardif_free_ref()
doesn't check for NULL before dereferencing it to get to refcount.

Introduced in 56a76628deae6bfffb526903315163ea5d86c3ef
("batman-adv: add debugfs support to view multiif tables").

Reported-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Acked-by: Antonio Quartulli <antonio@meshcoding.com>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
net/batman-adv/originator.c