[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <230c996d-536c-4d7f-9098-2e03203482e4@acm.org>
Date: Mon, 1 Jul 2024 09:50:54 -0700
From: Bart Van Assche <bvanassche@....org>
To: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>,
James.Bottomley@...senPartnership.com
Cc: martin.petersen@...cle.com, linux-scsi@...r.kernel.org,
linux-kernel@...r.kernel.org, Abaci Robot <abaci@...ux.alibaba.com>
Subject: Re: [PATCH] scsi: sd: Fix unsigned expression compared with zero
On 7/1/24 2:06 AM, Jiapeng Chong wrote:
> The return value from the call to scsi_execute_cmd() is int. However, the
> return value is being assigned to an unsigned int variable 'the_result',
> so making 'the_result' an int.
>
> ./drivers/scsi/sd.c:2333:6-16: WARNING: Unsigned expression compared with zero: the_result > 0.
Since this is a bug fix, please add Cc: stable and Fixes: tags.
Thanks,
Bart.
Powered by blists - more mailing lists