Re: [PATCH] r8152: add missing endpoint sanity check

From: David Miller
Date: Tue Jan 14 2020 - 21:44:51 EST


From: Johan Hovold <johan@xxxxxxxxxx>
Date: Tue, 14 Jan 2020 09:27:29 +0100

> Add missing endpoint sanity check to probe in order to prevent a
> NULL-pointer dereference (or slab out-of-bounds access) when retrieving
> the interrupt-endpoint bInterval on ndo_open() in case a device lacks
> the expected endpoints.
>
> Fixes: 40a82917b1d3 ("net/usb/r8152: enable interrupt transfer")
> Cc: hayeswang <hayeswang@xxxxxxxxxxx>
> Signed-off-by: Johan Hovold <johan@xxxxxxxxxx>

Applied and queued up for -stable, thank you.