Skip to content

Commit

Permalink
can: isotp: isotp_recvmsg(): use sock_recv_cmsgs() to get SOCK_RXQ_OV…
Browse files Browse the repository at this point in the history
…FL infos

isotp.c was still using sock_recv_timestamp() which does not provide
control messages to detect dropped PDUs in the receive path.

Fixes: e057dd3 ("can: add ISO 15765-2:2016 transport protocol")
Signed-off-by: Oliver Hartkopp <[email protected]>
Link: https://lore.kernel.org/all/[email protected]
Cc: [email protected]
Signed-off-by: Marc Kleine-Budde <[email protected]>
  • Loading branch information
hartkopp authored and marckleinebudde committed Apr 5, 2023
1 parent b45193c commit 0145462
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/can/isotp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1120,7 +1120,7 @@ static int isotp_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
if (ret < 0)
goto out_err;

sock_recv_timestamp(msg, sk, skb);
sock_recv_cmsgs(msg, sk, skb);

if (msg->msg_name) {
__sockaddr_check_size(ISOTP_MIN_NAMELEN);
Expand Down

0 comments on commit 0145462

Please sign in to comment.