[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Z8DG6A76HFWs3hlD@embed-PC>
Date: Fri, 28 Feb 2025 01:41:20 +0530
From: Abhishek Tamboli <abhishektamboli9@...il.com>
To: Greg KH <gregkh@...uxfoundation.org>
Cc: mathias.nyman@...el.com, linux-usb@...r.kernel.org,
linux-kernel@...r.kernel.org, dan.carpenter@...aro.org
Subject: Re: [PATCH] xhci: Fix bcdUSB initialization
Hi Greg,
Thanks for the review.
> On Fri, Feb 28, 2025 at 01:04:00AM +0530, Abhishek Tamboli wrote:
> > Initialize bcdUSB to 0 to prevent undefined behaviour
> > if accessed without being explicitly set.
>
> Is it actually accessed without being set? If so, please explain it and
> also how the compiler is somehow missing this already?
I added bcdUSB = 0 based on a Smatch warning about potential uninitialized access.
However, given that bcdUSB is always set in the first loop iteration,
this might be a false positive.
Regards,
Abhishek
Powered by blists - more mailing lists