ipv4: fix NULL checking in devinet_ioctl()
authorXi Wang <xi.wang@gmail.com>
Sat, 5 Jan 2013 11:19:24 +0000 (11:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Jan 2013 05:11:18 +0000 (21:11 -0800)
commitc7e2e1d72ed7707239d20525e0ebcad7e3303659
tree1ada00f778308f034bfc082b03f740955599f526
parentae62ca7b03217be5e74759dc6d7698c95df498b3
ipv4: fix NULL checking in devinet_ioctl()

The NULL pointer check `!ifa' should come before its first use.

[ Bug origin : commit fd23c3b31107e2fc483301ee923d8a1db14e53f4
  (ipv4: Add hash table of interface addresses) in linux-2.6.39 ]

Signed-off-by: Xi Wang <xi.wang@gmail.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/devinet.c