]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc0ca5c3205f278631284078062a3697d3c987083
tree50892f5ba03a89fc853b267745f82b44fbfc0de6
parente10f56133724438df4942f101e46556454ff3fc7
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