diff options
| author | Oliver Hartkopp <[email protected]> | 2022-05-17 16:56:53 +0200 |
|---|---|---|
| committer | Marc Kleine-Budde <[email protected]> | 2022-05-19 22:11:28 +0200 |
| commit | b76b163f46b661499921a0049982764a6659bfe7 (patch) | |
| tree | 7b453791dfaa26c95dd6bf863a3ac249629c7275 /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | d7e6f5836038eeac561411ed7a74e2a225a6c138 (diff) | |
can: isotp: isotp_bind(): do not validate unused address information
With commit 2aa39889c463 ("can: isotp: isotp_bind(): return -EINVAL on
incorrect CAN ID formatting") the bind() syscall returns -EINVAL when
the given CAN ID needed to be sanitized. But in the case of an unconfirmed
broadcast mode the rx CAN ID is not needed and may be uninitialized from
the caller - which is ok.
This patch makes sure the result of an inproper CAN ID format is only
provided when the address information is needed.
Link: https://lore.kernel.org/all/[email protected]
Signed-off-by: Oliver Hartkopp <[email protected]>
Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions