pps: add ioctl_compat function to correct ioctl definitions
authorMatt Ranostay <matt.ranostay@konsulko.com>
Fri, 10 Mar 2017 23:19:44 +0000 (15:19 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Mar 2017 06:10:49 +0000 (15:10 +0900)
commit2ac6665701afd1946e1c93bd1308e97fd2b0ce10
tree50892f5ba03a89fc853b267745f82b44fbfc0de6
parent48a5e6bdc2dd82281d7d6623a7395be7d6c3a95b
pps: add ioctl_compat function to correct ioctl definitions

ioctl definitions use the pointer size of the architecture which
is fine when userspace and kernel are the same bitsize. This
patchset workarounds an issue with mixed bitsize kernel + userspace
by rewriting the cmd to the kernelspace architecture pointer size.

Acked-by: Rodolfo Giometti <giometti@enneenne.com>
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pps/pps.c