[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <2feebb67-09ce-403d-8e46-6217e32b44c9@gmail.com>
Date: Tue, 19 Nov 2024 22:23:00 +0530
From: Suraj Sonawane <surajsonawane0215@...il.com>
To: Christoph Hellwig <hch@...radead.org>
Cc: Jens Axboe <axboe@...nel.dk>, linux-block@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v4] block: Fix uninitialized symbol 'bio' in
blk_rq_prep_clone
On 18/11/24 11:58, Christoph Hellwig wrote:
> On Sat, Nov 16, 2024 at 05:02:57PM +0530, Suraj Sonawane wrote:
>> Apologies for any confusion earlier, and thank you for your attention to
>> this. After further analysis, I realize that this change isn't necessary, as
>> bio is already set to NULL by bio_alloc_clone on failure, preventing any
>> real case of uninitialized use. My initial patch aimed to clean up the code
>> and satisfy smatch, ensuring better readability and error handling.
>>
>> I appreciate your feedback and the opportunity to learn from this. I now
>> understand that no change is needed here. Thank you for your guidance and
>> understanding.
>
> FYI, I still think the change is useful. It makes the code a lot
> better to read for humans and machines, and fixes a static checker
> false positive. So I'd still love to see it, it just needs a better
> commit log. Feel free to contact me off list if you need help with
> that.
>
Thank you for your valuable input and for encouraging me to improve the
patch. I have sent a V5 version of the patch with an updated and
detailed commit log, including a thorough explanation of the changes and
a summary of the discussion so far.
You can find the patch here:
https://lore.kernel.org/lkml/20241119164412.37609-1-surajsonawane0215@gmail.com/
I appreciate your willingness to review it and provide feedback.
Best regards,
Suraj Sonawane
Powered by blists - more mailing lists