Skip to content

Commit d5a858b

Browse files
author
David S. Miller
committed
[SPARC]: Missing compat_ioctl hookup in openprom driver.
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent f093182 commit d5a858b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎drivers/sbus/char/openprom.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,8 @@ static long openprom_compat_ioctl(struct file *file, unsigned int cmd,
596596
lock_kernel();
597597
break;
598598
}
599+
600+
return rval;
599601
}
600602

601603
static int openprom_open(struct inode * inode, struct file * file)
@@ -623,6 +625,7 @@ static struct file_operations openprom_fops = {
623625
.owner = THIS_MODULE,
624626
.llseek = no_llseek,
625627
.ioctl = openprom_ioctl,
628+
.compat_ioctl = openprom_compat_ioctl,
626629
.open = openprom_open,
627630
.release = openprom_release,
628631
};

0 commit comments

Comments
 (0)