[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200114.184427.389937353174651227.davem@davemloft.net>
Date: Tue, 14 Jan 2020 18:44:27 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: johan@...nel.org
Cc: netdev@...r.kernel.org, linux-usb@...r.kernel.org,
linux-kernel@...r.kernel.org, hayeswang@...ltek.com
Subject: Re: [PATCH] r8152: add missing endpoint sanity check
From: Johan Hovold <johan@...nel.org>
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@...ltek.com>
> Signed-off-by: Johan Hovold <johan@...nel.org>
Applied and queued up for -stable, thank you.
Powered by blists - more mailing lists