aboutsummaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2022-09-20 11:56:57 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2022-09-23 13:55:00 +0200
commit593b5e2f5a4abff998644effe19033f440651fd6 (patch)
tree43cd8358530cd0a0390d55ef767f8679c32b41b8 /net/unix/af_unix.c
parent86c223ffc8ada40cfcb25bdf37c381a84fc85402 (diff)
downloadlinux-593b5e2f5a4abff998644effe19033f440651fd6.tar.gz
linux-593b5e2f5a4abff998644effe19033f440651fd6.tar.bz2
linux-593b5e2f5a4abff998644effe19033f440651fd6.zip
can: gs_usb: gs_usb_get_timestamp(): fix endpoint parameter for usb_control_msg_recv()
The 2nd argument of usb_control_msg_recv() is the "endpoint", usb_control_msg_recv() will internally convert the endpoint into a pipe with usb_rcvctrlpipe(). In gs_usb_get_timestamp() not the endpoint "0" is passed, but the pipe. This worked by accident as endpoint is a __u8 and the lowest 8 bits of the pipe are 0. Fix this copy/paste error by using the correct endpoint of "0". Fixes: 45dfa45f52e6 ("can: gs_usb: add RX and TX hardware timestamp support") Link: https://lore.kernel.org/all/20220920100416.959226-2-mkl@pengutronix.de Cc: John Whittington <git@jbrengineering.co.uk> Tested-by: John Whittington <git@jbrengineering.co.uk> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions