On Tue, Jul 23, 2024 at 10:13:44PM +0800, Ma Ke wrote:
When dp->con->partner is an error, a NULL pointer dereference may occur. Add a check for dp->con->partner to avoid dereferencing a NULL pointer.
Cc: stable@vger.kernel.org Fixes: 372adf075a43 ("usb: typec: ucsi: Determine common SVDM Version") Signed-off-by: Ma Ke make24@iscas.ac.cn
How was this found? How was it tested? Given that the first version didn't even build, it seems like this was never tested at all...
thanks,
greg k-h