xhci: Fix sizeof() mismatch
authorColin Ian King <colin.king@canonical.com>
Wed, 28 Oct 2020 20:31:22 +0000 (22:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Oct 2020 07:29:12 +0000 (08:29 +0100)
commita75e2d604da8219d928be010bde37c3ab0ebd466
tree8b11dbd0316df4b595e01a40aceb53f46b1269da
parentbefa1c2d65c639a7aefa793d36d7229732f14642
xhci: Fix sizeof() mismatch

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.

Fixes: bcaa9d5c5900 ("xhci: Create new structures to store xhci port information")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20201028203124.375344-2-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-mem.c