diff options
author | Dan Carpenter <[email protected]> | 2018-01-21 10:26:31 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2018-01-22 16:45:26 +0100 |
commit | 51c266561e5aec056e025b5bf9072d82c89b59b3 (patch) | |
tree | 9e3bb63ff4e24eda044a5f3deae9ad37d0cc7955 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | d6088e9a89f7c6fe9720978196c4d9799fd16c29 (diff) |
soundwire: Fix a signedness bug
"ret" is an int and "buf" is a u8. sdw_read() returns negative error
codes which are truncated to the u8, 0-255 range before being stored as
an int. It means that "ret" can't be less than zero.
Fixes: b0a9c37b0178 ("soundwire: Add slave status handling")
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Vinod Koul <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions