[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <171821162747.49689.15711924368254843874.b4-ty@kernel.dk>
Date: Wed, 12 Jun 2024 11:00:27 -0600
From: Jens Axboe <axboe@...nel.dk>
To: jonathan.derrick@...ux.dev, nathan@...nel.org, ndesaulniers@...gle.com,
morbo@...gle.com, justinstitt@...gle.com, Su Hui <suhui@...china.com>
Cc: jarkko@...nel.org, gjoyce@...ux.vnet.ibm.com,
linux-block@...r.kernel.org, linux-kernel@...r.kernel.org,
llvm@...ts.linux.dev, kernel-janitors@...r.kernel.org
Subject: Re: [PATCH] block: sed-opal: avoid possible wrong address
reference in read_sed_opal_key()
On Tue, 11 Jun 2024 15:37:00 +0800, Su Hui wrote:
> Clang static checker (scan-build) warning:
> block/sed-opal.c:line 317, column 3
> Value stored to 'ret' is never read.
>
> Fix this problem by returning the error code when keyring_search() failed.
> Otherwise, 'key' will have a wrong value when 'kerf' stores the error code.
>
> [...]
Applied, thanks!
[1/1] block: sed-opal: avoid possible wrong address reference in read_sed_opal_key()
commit: 9b1ebce6a1fded90d4a1c6c57dc6262dac4c4c14
Best regards,
--
Jens Axboe
Powered by blists - more mailing lists