Re: [PATCH 2/2] pps: fix padding issue with PPS_FETCH for ioctl_compat
From: Rodolfo Giometti
Date: Sat Mar 04 2017 - 03:11:44 EST
On 02/24/17 21:23, Matt Ranostay wrote:
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.
Cc: Rodolfo Giometti <giometti@xxxxxxxxxxxx>
Cc: Moritz Fischer <mdf@xxxxxxxxxx>
Cc: George McCollister <george.mccollister@xxxxxxxxx>
Signed-off-by: Matt Ranostay <matt.ranostay@xxxxxxxxxxxx>
---
drivers/pps/pps.c | 110 ++++++++++++++++++++++++++++++++++-------------
include/uapi/linux/pps.h | 19 ++++++++
2 files changed, 98 insertions(+), 31 deletions(-)
Acked-by: Rodolfo Giometti <giometti@xxxxxxxxxxxx>
--
HCE Engineering e-mail: giometti@xxxxxxxxxxxxxxxxxxx
GNU/Linux Solutions giometti@xxxxxxxxxxxx
Linux Device Driver giometti@xxxxxxxx
Embedded Systems phone: +39 349 2432127
UNIX programming skype: rodolfo.giometti
Cosino Project - the quick prototyping embedded system - www.cosino.io
Freelance ICT Italia - Consulente ICT Italia - www.consulenti-ict.it