diff options
| author | Fred Oh <[email protected]> | 2020-06-22 10:13:48 -0500 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2020-06-23 12:54:11 +0100 |
| commit | ee8a41cd30a99b39bd5d46280cc778e275cd2390 (patch) | |
| tree | 2bd42b6fca5aad106f490bd24b0beecb25483da6 /tools/perf/scripts/python/flamegraph.py | |
| parent | b1647f9f4f27824a689f774014bc33728b4fe7ec (diff) | |
ASoC: rt1011: fix KASAN out-of-bounds bug in find_next_bit()
KASAN throws the following warning in rt1011.c:
[ 170.777603] BUG: KASAN: stack-out-of-bounds in _find_next_bit.constprop.0+0x3e/0xf0
find_next_bit() relies on unsigned long pointer arguments, but this driver
uses a type cast that generates the KASAN warning. Replace find_next_bit()
and find_last_bit() with __ffs() and __fls() to pass the value and avoid
casting pointers to make the warning go away.
Signed-off-by: Fred Oh <[email protected]>
Signed-off-by: Pierre-Louis Bossart <[email protected]>
Reviewed-by: Guennadi Liakhovetski <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions