aboutsummaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2018-01-30 15:11:44 +0000
committerMichael Ellerman <[email protected]>2018-02-08 23:56:11 +1100
commitdedab7f0d3137441a97fe7cf9b9ca5dbd20ca9a5 (patch)
tree54e976a81e05f1231af1d3b4ff33dd8340acf0e9 /net/unix/sysctl_net_unix.c
parent6cc3f91bf69fc8c1719704607474f9b9df56f348 (diff)
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: 5ef3166e8a32 ("ocxl: Driver code for 'generic' opencapi devices") Signed-off-by: Colin Ian King <[email protected]> Acked-by: Andrew Donnellan <[email protected]> Acked-by: Frederic Barrat <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions