diff options
author | Oliver Hartkopp <socketcan@hartkopp.net> | 2012-11-21 22:43:59 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-12-03 11:38:00 -0800 |
commit | 4735a28cf102492dde4c036f74b0c2d8318ed004 (patch) | |
tree | f11dba8dbcec91d43d053b5013ff26e2ac9d757d /virt/kvm | |
parent | 0314f284eb000d55ccbac67a9b1fce4912d86937 (diff) |
can: peak_usb: fix hwtstamp assignment
commit c9faaa09e2a1335678f09c70a0d0eda095564bab upstream.
The skb->tstamp is set to the hardware timestamp when available in the USB
urb message. This leads to user visible timestamps which contain the 'uptime'
of the USB adapter - and not the usual system generated timestamp.
Fix this wrong assignment by applying the available hardware timestamp to the
skb_shared_hwtstamps data structure - which is intended for this purpose.
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'virt/kvm')
0 files changed, 0 insertions, 0 deletions