Commit 34f6c9c3 authored by Howard Yen's avatar Howard Yen Committed by Greg Kroah-Hartman
Browse files

ANDROID: usb: host: fix slab-out-of-bounds in xhci_vendor_get_ops



slab-out-of-bounds happens if the xhci platform drivers don't define
the extra_priv_size in their xhci_driver_overrides structure. Move
xhci_vendor_ops structure to xhci main structure to avoid
extra_priv_size affacts xhci_vendor_get_ops which causes the
slab-out-of-bounds error.

Bug: 194461020
Test: build and boot pass
Change-Id: Id17fdfbfd3e8edcc89a05c9c2f553ffab494215e
Signed-off-by: default avatarHoward Yen <howardyen@google.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 3de34cc5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment