Re: [PATCH] usb: fix various gadgets null ptr deref on 10gbps cabling.

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

 



On Tue, Jun 8, 2021 at 1:42 PM Maciej Żenczykowski
<zenczykowski@xxxxxxxxx> wrote:
> This avoids a null pointer dereference in
> f_{ecm,eem,hid,loopback,printer,rndis,serial,sourcesink,subset,tcm}
> by simply reusing the 5gbps config for 10gbps.

Matches what was done, for example, for f_ncm in 7974ecd7d3c0.
usb_assign_descriptors calls usb_copy_descriptors, so it's safe to use
the superspeed descriptors for both superspeed and superspeed plus.

Reviewed-By: Lorenzo Colitti <lorenzo@xxxxxxxxxx>




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

  Powered by Linux