2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-25 05:34:00 +08:00
linux-next/drivers/misc/ocxl
Colin Ian King dedab7f0d3 ocxl: fix signed comparison with less than zero
Currently the comparison of used < 0 is always false because
uses is a size_t. Fix this by making used a ssize_t type.

Detected by Coccinelle:
drivers/misc/ocxl/file.c:320:6-10: WARNING: Unsigned expression
compared with zero: used < 0

Fixes: 5ef3166e8a ("ocxl: Driver code for 'generic' opencapi devices")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Acked-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2018-02-08 23:56:11 +11:00
..
afu_irq.c ocxl: Add trace points 2018-01-24 11:42:59 +11:00
config.c ocxl: Add a kernel API for other opencapi drivers 2018-01-24 11:42:59 +11:00
context.c ocxl: Add trace points 2018-01-24 11:42:59 +11:00
file.c ocxl: fix signed comparison with less than zero 2018-02-08 23:56:11 +11:00
Kconfig ocxl: Add Makefile and Kconfig 2018-01-24 11:42:59 +11:00
link.c ocxl: Add trace points 2018-01-24 11:42:59 +11:00
main.c
Makefile ocxl: Add Makefile and Kconfig 2018-01-24 11:42:59 +11:00
ocxl_internal.h ocxl: Add a kernel API for other opencapi drivers 2018-01-24 11:42:59 +11:00
pasid.c
pci.c
sysfs.c
trace.c ocxl: Add trace points 2018-01-24 11:42:59 +11:00
trace.h ocxl: Add trace points 2018-01-24 11:42:59 +11:00