X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=drivers%2Fptp%2Fptp_chardev.c;h=58a97d4205723fff7e25f454480169b6f658b0a4;hb=63ae602cea637ee4a6490d940c0da5d78bd0bbe0;hp=d637c933c8a90655ffe152101dda2b9c71fd3836;hpb=b2edcdae3d9a29b25f6c161a8711caa74ce49991;p=cascardo%2Flinux.git diff --git a/drivers/ptp/ptp_chardev.c b/drivers/ptp/ptp_chardev.c index d637c933c8a9..58a97d420572 100644 --- a/drivers/ptp/ptp_chardev.c +++ b/drivers/ptp/ptp_chardev.c @@ -193,6 +193,7 @@ long ptp_ioctl(struct posix_clock *pc, unsigned int cmd, unsigned long arg) if (err) break; + memset(&precise_offset, 0, sizeof(precise_offset)); ts = ktime_to_timespec64(xtstamp.device); precise_offset.device.sec = ts.tv_sec; precise_offset.device.nsec = ts.tv_nsec;