Re: [PATCH] xhci: Fix sizeof() mismatch

2020-10-26 Thread Mathias Nyman
On 8.10.2020 20.11, Colin King wrote: > From: Colin Ian King > > An incorrect sizeof() is being used, sizeof(rhub->ports) is not > correct, it should be sizeof(*rhub->ports). This bug did not > cause any issues because it just so happens the sizes are the same. > > Addresses-Coverity: ("Sizeof

[PATCH] xhci: Fix sizeof() mismatch

2020-10-08 Thread Colin King
From: Colin Ian King An incorrect sizeof() is being used, sizeof(rhub->ports) is not correct, it should be sizeof(*rhub->ports). This bug did not cause any issues because it just so happens the sizes are the same. Addresses-Coverity: ("Sizeof not portable (SIZEOF_MISMATCH)") Fixes: