diff options
author | Takashi Iwai <[email protected]> | 2020-12-18 17:17:30 +0100 |
---|---|---|
committer | Takashi Iwai <[email protected]> | 2020-12-18 17:31:02 +0100 |
commit | 11cb881bf075cea41092a20236ba708b18e1dbb2 (patch) | |
tree | 7241ffce99da6725f70d372c6350253e2e6196e5 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 618de0f4ef11acd8cf26902e65493d46cc20cc89 (diff) |
ALSA: pcm: oss: Fix a few more UBSAN fixes
There are a few places that call round{up|down}_pow_of_two() with the
value zero, and this causes undefined behavior warnings. Avoid
calling those macros if such a nonsense value is passed; it's a minor
optimization as well, as we handle it as either an error or a value to
be skipped, instead.
Reported-by: [email protected]
Cc: <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions