diff options
Diffstat (limited to 'fs/compat_ioctl.c')
-rw-r--r-- | fs/compat_ioctl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index 64f406593c0e..763fe69ef351 100644 --- a/fs/compat_ioctl.c +++ b/fs/compat_ioctl.c | |||
@@ -522,6 +522,11 @@ static int dev_ifsioc(unsigned int fd, unsigned int cmd, unsigned long arg) | |||
522 | if (err) | 522 | if (err) |
523 | return -EFAULT; | 523 | return -EFAULT; |
524 | break; | 524 | break; |
525 | case SIOCSHWTSTAMP: | ||
526 | if (copy_from_user(&ifr, uifr32, sizeof(*uifr32))) | ||
527 | return -EFAULT; | ||
528 | ifr.ifr_data = compat_ptr(uifr32->ifr_ifru.ifru_data); | ||
529 | break; | ||
525 | default: | 530 | default: |
526 | if (copy_from_user(&ifr, uifr32, sizeof(*uifr32))) | 531 | if (copy_from_user(&ifr, uifr32, sizeof(*uifr32))) |
527 | return -EFAULT; | 532 | return -EFAULT; |
@@ -2563,6 +2568,7 @@ HANDLE_IOCTL(SIOCSIFMAP, dev_ifsioc) | |||
2563 | HANDLE_IOCTL(SIOCGIFADDR, dev_ifsioc) | 2568 | HANDLE_IOCTL(SIOCGIFADDR, dev_ifsioc) |
2564 | HANDLE_IOCTL(SIOCSIFADDR, dev_ifsioc) | 2569 | HANDLE_IOCTL(SIOCSIFADDR, dev_ifsioc) |
2565 | HANDLE_IOCTL(SIOCSIFHWBROADCAST, dev_ifsioc) | 2570 | HANDLE_IOCTL(SIOCSIFHWBROADCAST, dev_ifsioc) |
2571 | HANDLE_IOCTL(SIOCSHWTSTAMP, dev_ifsioc) | ||
2566 | 2572 | ||
2567 | /* ioctls used by appletalk ddp.c */ | 2573 | /* ioctls used by appletalk ddp.c */ |
2568 | HANDLE_IOCTL(SIOCATALKDIFADDR, dev_ifsioc) | 2574 | HANDLE_IOCTL(SIOCATALKDIFADDR, dev_ifsioc) |