Re: [PATCH][next] scsi: target: fix unsigned comparision with less than zero

From: Martin K. Petersen
Date: Wed Mar 20 2019 - 20:33:55 EST



Colin,

> 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.

Applied to 5.2/scsi-queue, thanks!

--
Martin K. Petersen Oracle Linux Engineering