Re: [PATCH v1] drivers/usb/core/driver: check return value of usb_set_interface()
From: Greg KH
Date: Fri Sep 09 2022 - 06:21:55 EST
On Thu, Sep 08, 2022 at 09:42:14PM -0700, Li Zhong wrote:
> Check return value of usb_set_interface() and report error if it fails.
> Otherwise usb_set_interface() may fail without any warnings.
>
> This flaw was found using an experimental static analysis tool we are
> developing. Report warnings when the function usb_set_interface() fails
> can increase the dianosability.
How did you test this change?