linux/drivers/soundwire
Dan Carpenter 51c266561e 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: b0a9c37b01 ("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>
2018-01-22 16:45:26 +01:00
..
bus_type.c
bus.c soundwire: Fix a signedness bug 2018-01-22 16:45:26 +01:00
bus.h
cadence_master.c
cadence_master.h
intel_init.c
intel.c
intel.h
Kconfig
Makefile
mipi_disco.c
slave.c