diff options
author | Alan Stern <[email protected]> | 2021-05-21 22:16:23 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2021-05-22 10:37:25 +0200 |
commit | 5cc59c418fde9d02859996707b9d5dfd2941c50b (patch) | |
tree | 5577775d3ae3a9334ba6c3705a9cd0f3294e242c /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 7257fbc7c598617ca71605089264c61636d52157 (diff) |
USB: core: WARN if pipe direction != setup packet direction
When a control URB is submitted, the direction indicated by URB's pipe
member is supposed to match the direction indicated by the setup
packet's bRequestType member. A mismatch could lead to trouble,
depending on which field the host controller drivers use for
determining the actual direction.
This shouldn't ever happen; it would represent a careless bug in a
kernel driver somewhere. This patch adds a dev_WARN_ONCE to let
people know about the potential problem.
Suggested-by: "Geoffrey D. Bennett" <[email protected]>
Reviewed-by: Johan Hovold <[email protected]>
Signed-off-by: Alan Stern <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions