net: Fix oops in dev_ifsioc()
authorJarek Poplawski <jarkao2@gmail.com>
Tue, 23 Dec 2008 03:35:28 +0000 (19:35 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Dec 2008 03:35:28 +0000 (19:35 -0800)
commit5f2f6da76c429c42d54f73807f00b8fd761a7d68
tree20cabaf277e2e95df669c4e9ee6968067b096dc0
parentd3d317092b58a6df1d31a4ca90cdb9d2bd4ebffa
net: Fix oops in dev_ifsioc()

A command like this: "brctl addif br1 eth1" issued as a user gave me
an oops when bridge module wasn't loaded. It's caused by using a dev
pointer before checking for NULL.

Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c