Files
rockchip-kernel/drivers/usb/host/xhci-mem.c
J. Avila 01a0d1ea31 ANDROID: usb: host: Use old init scheme when hook unavailable
In cases where the new xhci hooks are unimplemented, ctx->bytes may
never be initialized, leading to null pointer crashes. Fix this by only
calling xhci_vendor_alloc/free_container_ctx when the corresponding hook
is present.

Bug: 185191548
Signed-off-by: J. Avila <elavila@google.com>
Change-Id: Ia77b0815ddc8bc340a286731558c754c779e883a
2021-04-13 23:22:23 +00:00

79 KiB