commit | 34e02aa1fb0886d8e92ab00e3dc17d631487f92d | [log] [tgz] |
---|---|---|
author | stephen hemminger <shemminger@vyatta.com> | Tue Oct 09 20:35:53 2012 +0000 |
committer | David S. Miller <davem@davemloft.net> | Wed Oct 10 22:41:22 2012 -0400 |
tree | 9cfd4f0f53c5b5aa6b3f1364f8549c1c88311303 | |
parent | d97c00a32198f0d066556006cfcd409efb28f746 [diff] |
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>