can: peak_usb: fix hwtstamp assignment
authorOliver Hartkopp <socketcan@hartkopp.net>
Wed, 21 Nov 2012 21:43:59 +0000 (22:43 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 26 Nov 2012 21:33:06 +0000 (22:33 +0100)
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.

Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>

No differences found