Revision b6ed5498601df40489606dbc14a9c7011c16630b authored by Cong Wang on 22 May 2014, 18:57:17 UTC, committed by David S. Miller on 22 May 2014, 21:23:00 UTC
batman tries to search dev->iflink to check if it's a batman interface,
but ->iflink could be 0, which is not a valid ifindex. It should just
avoid iflink == 0 case.

Reported-by: Jet Chen <jet.chen@intel.com>
Tested-by: Jet Chen <jet.chen@intel.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Steffen Klassert <steffen.klassert@secunet.com>
Cc: Antonio Quartulli <antonio@open-mesh.com>
Cc: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Cong Wang <cwang@twopensource.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent fbdc0ad
History
File Mode Size
Kconfig -rw-r--r-- 1.5 KB
Makefile -rw-r--r-- 271 bytes
af_x25.c -rw-r--r-- 40.4 KB
sysctl_net_x25.c -rw-r--r-- 1.9 KB
x25_dev.c -rw-r--r-- 4.4 KB
x25_facilities.c -rw-r--r-- 9.0 KB
x25_forward.c -rw-r--r-- 3.9 KB
x25_in.c -rw-r--r-- 9.8 KB
x25_link.c -rw-r--r-- 8.9 KB
x25_out.c -rw-r--r-- 5.3 KB
x25_proc.c -rw-r--r-- 5.9 KB
x25_route.c -rw-r--r-- 4.8 KB
x25_subr.c -rw-r--r-- 9.5 KB
x25_timer.c -rw-r--r-- 3.8 KB

back to top