summaryrefslogtreecommitdiffstats
path: root/drivers/virt
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2018-01-21 10:26:31 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-01-22 16:45:26 +0100
commit51c266561e5aec056e025b5bf9072d82c89b59b3 (patch)
tree9e3bb63ff4e24eda044a5f3deae9ad37d0cc7955 /drivers/virt
parentd6088e9a89f7c6fe9720978196c4d9799fd16c29 (diff)
downloadlinux-51c266561e5aec056e025b5bf9072d82c89b59b3.tar.bz2
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 <dan.carpenter@oracle.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/virt')
0 files changed, 0 insertions, 0 deletions