diff options
| author | Oliver Hartkopp <[email protected]> | 2022-03-16 17:42:57 +0100 |
|---|---|---|
| committer | Marc Kleine-Budde <[email protected]> | 2022-03-16 21:41:40 +0100 |
| commit | 30ffd5332e06316bd69a654c06aa033872979b7c (patch) | |
| tree | f6706cff0e5a3525728b1d34548144ab27302ca0 /tools/perf/scripts/python | |
| parent | 3ea566422cbde9610c2734980d1286ab681bb40e (diff) | |
can: isotp: return -EADDRNOTAVAIL when reading from unbound socket
When reading from an unbound can-isotp socket the syscall blocked
indefinitely. As unbound sockets (without given CAN address information)
do not make sense anyway we directly return -EADDRNOTAVAIL on read()
analogue to the known behavior from sendmsg().
Fixes: e057dd3fc20f ("can: add ISO 15765-2:2016 transport protocol")
Link: https://github.com/linux-can/can-utils/issues/349
Link: https://lore.kernel.org/all/[email protected]
Suggested-by: Derek Will <[email protected]>
Signed-off-by: Oliver Hartkopp <[email protected]>
Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions