pps: fix padding issue with PPS_FETCH for ioctl_compat
authorMatt Ranostay <matt.ranostay@konsulko.com>
Fri, 10 Mar 2017 23:19:45 +0000 (15:19 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Mar 2017 06:10:49 +0000 (15:10 +0900)
commitc2a49fe8eeef301b40d0c8065d817c5425d31b11
tree1b0c80d3dab868c633fb80cfffbacab684fb8277
parent2ac6665701afd1946e1c93bd1308e97fd2b0ce10
pps: fix padding issue with PPS_FETCH for ioctl_compat

Issue is that x86 32-bit aligns to 4-bytes instead of 8-bytes
so this patchset works around the issue and corrects the data
returned in pps_fdata_compat.

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
include/uapi/linux/pps.h