|
@@ -846,12 +846,13 @@ static int mkiss_ioctl(struct tty_struct *tty, struct file *file,
|
|
unsigned int cmd, unsigned long arg)
|
|
unsigned int cmd, unsigned long arg)
|
|
{
|
|
{
|
|
struct mkiss *ax = mkiss_get(tty);
|
|
struct mkiss *ax = mkiss_get(tty);
|
|
- struct net_device *dev = ax->dev;
|
|
|
|
|
|
+ struct net_device *dev;
|
|
unsigned int tmp, err;
|
|
unsigned int tmp, err;
|
|
|
|
|
|
/* First make sure we're connected. */
|
|
/* First make sure we're connected. */
|
|
if (ax == NULL)
|
|
if (ax == NULL)
|
|
return -ENXIO;
|
|
return -ENXIO;
|
|
|
|
+ dev = ax->dev;
|
|
|
|
|
|
switch (cmd) {
|
|
switch (cmd) {
|
|
case SIOCGIFNAME:
|
|
case SIOCGIFNAME:
|