[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a8659c74-ec76-456d-962f-1690581da162@stanley.mountain>
Date: Thu, 27 Feb 2025 23:15:41 +0300
From: Dan Carpenter <dan.carpenter@...aro.org>
To: Abhishek Tamboli <abhishektamboli9@...il.com>
Cc: mathias.nyman@...el.com, gregkh@...uxfoundation.org,
linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] xhci: Fix bcdUSB initialization
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.
>
> Fix the following smatch error:
> drivers/usb/host/xhci-hub.c:71 xhci_create_usb3x_bos_desc()
> error: uninitialized symbol 'bcdUSB'
>
> Signed-off-by: Abhishek Tamboli <abhishektamboli9@...il.com>
> ---
The concern here would be that xhci->num_port_caps is <= 0. That's
probably not possible so it's likely a false positive.
regards,
dan carpenter
Powered by blists - more mailing lists