[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20221223164229.GA31884@lst.de>
Date: Fri, 23 Dec 2022 17:42:29 +0100
From: Christoph Hellwig <hch@....de>
To: Dan Carpenter <error27@...il.com>
Cc: Christoph Hellwig <hch@....de>, oe-kbuild@...ts.linux.dev,
Sagi Grimberg <sagi@...mberg.me>, lkp@...el.com,
oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: Re: drivers/nvme/host/auth.c:950 nvme_auth_init_ctrl() warn:
missing error code? 'ret'
On Fri, Dec 23, 2022 at 07:21:49PM +0300, Dan Carpenter wrote:
> > - if (!ctrl->opts->dhchap_secret && !ctrl->opts->dhchap_ctrl_secret)
> > + if (!ctrl->host_key && !ctrl->ctrl_key)
> > return ret;
>
> ret is uninitialized now.
Yes. Should be a 'return 0'.
We really need to turn the maybe uninitialized warnings back on.
Powered by blists - more mailing lists