[PATCH] scsi: isci: fix memcmp casting

2018-05-24 Thread Ivan Bornyakov
memcmp() returns int, but variable of type u8 is used to store it. When casting int to u8, one can lose significant bits and get 0 from non-0 value returned by the memcmp(). Signed-off-by: Ivan Bornyakov --- drivers/scsi/isci/host.c | 4 ++-- 1 file changed, 2 insertions(+),

[PATCH] scsi: isci: fix memcmp casting

2018-05-24 Thread Ivan Bornyakov
memcmp() returns int, but variable of type u8 is used to store it. When casting int to u8, one can lose significant bits and get 0 from non-0 value returned by the memcmp(). Signed-off-by: Ivan Bornyakov --- drivers/scsi/isci/host.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)