summaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/leon_smp.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-03-20 16:37:09 +0000
committerMartin K. Petersen <martin.petersen@oracle.com>2019-03-20 20:33:06 -0400
commitee26724af6c71a9db786c5809395b4853edd4d54 (patch)
tree74b430776e0e9c61150fa98358e68f2b0a6a7eab /arch/sparc/kernel/leon_smp.c
parent1943edacef8966e24fc66d8cbe6347fe8b10ff80 (diff)
downloadlinux-stable-ee26724af6c71a9db786c5809395b4853edd4d54.tar.gz
linux-stable-ee26724af6c71a9db786c5809395b4853edd4d54.tar.bz2
linux-stable-ee26724af6c71a9db786c5809395b4853edd4d54.zip
scsi: target: fix unsigned comparision with less than zero
Currently an error return is being assigned to an unsigned size_t varianle and then checked if the result is less than zero which will always be false. Fix this by making ret ssize_t rather than a size_t. Fixes: 0322913cab79 ("scsi: target: Add device product id and revision configfs attributes") Signed-off-by: Colin Ian King <colin.king@canonical.com> Reviewed-by: Mike Christie <mchristi@redhat.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'arch/sparc/kernel/leon_smp.c')
0 files changed, 0 insertions, 0 deletions