econet: Fix crash in aun_incoming().
authorDavid S. Miller <davem@davemloft.net>
Thu, 9 Dec 2010 02:42:23 +0000 (18:42 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Dec 2010 04:51:15 +0000 (20:51 -0800)
commit4e085e76cbe558b79b54cbab772f61185879bc64
treed70aa6d1045a2759bfc67b4eafbb0199f5877b1c
parentf19872575ff7819a3723154657a497d9bca66b33
econet: Fix crash in aun_incoming().

Unconditional use of skb->dev won't work here,
try to fetch the econet device via skb_dst()->dev
instead.

Suggested by Eric Dumazet.

Reported-by: Nelson Elhage <nelhage@ksplice.com>
Tested-by: Nelson Elhage <nelhage@ksplice.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/econet/af_econet.c