diff options
author | Cong Wang <cwang@twopensource.com> | 2014-05-22 11:57:17 -0700 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2014-12-06 16:02:11 +0100 |
commit | 0ac8b68cefb09d4fe332b76f3171dfece2582104 (patch) | |
tree | b7e4d9156d1758b24b328586d35074d00252f8f5 /lib/flex_proportions.c | |
parent | 3dbce781ec9e44932b9eb441d22c2b3a3cadeac3 (diff) |
batman: fix a bogus warning from batadv_is_on_batman_iface()
commit b6ed5498601df40489606dbc14a9c7011c16630b upstream.
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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'lib/flex_proportions.c')
0 files changed, 0 insertions, 0 deletions