X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fnet%2Fhamradio%2F6pack.c;h=2d4089894ec7b13c61f7626c95b8fa991ca104a5;hb=3c081384007332ab95c8d8753f47719d6646bcb2;hp=50f1e172ee8f9556a09e7fbdb1ab05f69c09f74e;hpb=ec9f168fcc344d2ffec1c8c822076bf22dab5c33;p=linux-2.6-omap-h63xx.git diff --git a/drivers/net/hamradio/6pack.c b/drivers/net/hamradio/6pack.c index 50f1e172ee8..2d4089894ec 100644 --- a/drivers/net/hamradio/6pack.c +++ b/drivers/net/hamradio/6pack.c @@ -717,11 +717,12 @@ static int sixpack_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg) { struct sixpack *sp = sp_get(tty); - struct net_device *dev = sp->dev; + struct net_device *dev; unsigned int tmp, err; if (!sp) return -ENXIO; + dev = sp->dev; switch(cmd) { case SIOCGIFNAME: