]> Git Repo - linux.git/commit
can: isotp: restore accidentally removed MSG_PEEK feature
authorOliver Hartkopp <[email protected]>
Mon, 28 Mar 2022 11:36:11 +0000 (13:36 +0200)
committerMarc Kleine-Budde <[email protected]>
Thu, 31 Mar 2022 07:46:58 +0000 (09:46 +0200)
commite382fea8ae54f5bb62869c6b69b33993d43adeca
tree6833f666ce8db31c055e2b59fe8f8efa970d1cdd
parentf9512d654f62604664251dedd437a22fe484974a
can: isotp: restore accidentally removed MSG_PEEK feature

In commit 42bf50a1795a ("can: isotp: support MSG_TRUNC flag when
reading from socket") a new check for recvmsg flags has been
introduced that only checked for the flags that are handled in
isotp_recvmsg() itself.

This accidentally removed the MSG_PEEK feature flag which is processed
later in the call chain in __skb_try_recv_from_queue().

Add MSG_PEEK to the set of valid flags to restore the feature.

Fixes: 42bf50a1795a ("can: isotp: support MSG_TRUNC flag when reading from socket")
Link: https://github.com/linux-can/can-utils/issues/347#issuecomment-1079554254
Link: https://lore.kernel.org/all/[email protected]
Reported-by: Derek Will <[email protected]>
Suggested-by: Derek Will <[email protected]>
Tested-by: Derek Will <[email protected]>
Signed-off-by: Oliver Hartkopp <[email protected]>
Signed-off-by: Marc Kleine-Budde <[email protected]>
net/can/isotp.c
This page took 0.064339 seconds and 4 git commands to generate.