Re: [PATCH] USB: serial: qcserial: fix altsetting probing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Sep 29, 2020 at 12:42:39PM +0200, Johan Hovold wrote:
> Drivers should not assume that interface descriptors have been parsed in
> any particular order so use the interface number to look up the second
> alternate setting. That number is also what the driver later use to
> switch setting.
> 
> Note that although the driver could end up verifying the existence of
> the expected endpoints on the wrong interface, a later sanity check in
> usb_wwan_port_probe() would have caught this before it could cause any
> real damage.
> 
> Fixes: a78b42824dd7 ("USB: serial: add qualcomm wireless modem driver")
> Signed-off-by: Johan Hovold <johan@xxxxxxxxxx>

Reviewed-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux