diff options
| author | Dan Carpenter <[email protected]> | 2018-01-21 04:56:31 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2018-01-22 15:45:26 +0000 |
| commit | 51c266561e5aec056e025b5bf9072d82c89b59b3 (patch) | |
| tree | 9e3bb63ff4e24eda044a5f3deae9ad37d0cc7955 /fs/jbd2/commit.c | |
| parent | uio_hv_generic: fix new type mismatch warnings (diff) | |
| download | kernel-51c266561e5aec056e025b5bf9072d82c89b59b3.tar.gz kernel-51c266561e5aec056e025b5bf9072d82c89b59b3.zip | |
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 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions
