]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: fix oops when give unknown ifindex
authorstephen hemminger <shemminger@vyatta.com>
Tue, 9 Oct 2012 20:35:53 +0000 (20:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Oct 2012 02:41:22 +0000 (22:41 -0400)
commit643330e49ba419108b3b40bf762e11f83cb8f089
tree9cfd4f0f53c5b5aa6b3f1364f8549c1c88311303
parent98abf0ec706b820c6994704aade202f271fed96f
vxlan: fix oops when give unknown ifindex

If vxlan is created and the ifindex is passed; there are two cases which
are incorrectly handled by the existing code. The ifindex could be zero
(i.e. no device) or there could be no device with that ifindex.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c