Re: [PATCH v2 2/2] drm/sun4i: tcon: prevent tcon->panel dereference if null
From: Maxime Ripard
Date: Thu Oct 04 2018 - 15:56:10 EST
On Wed, Oct 03, 2018 at 04:24:58PM +0200, Giulio Benetti wrote:
> If using tcon with VGA,
We don't have support for VGA at the moment. Or are you talking about
using a VGA bridge?
> tcon->panel will be null(0), this will cause segmentation fault when
> trying to dereference tcon->panel->connector.
It's not a segmentation fault, but a null pointer dereference. And
that case will also happen with bridges.
Maxime
--
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Attachment:
signature.asc
Description: PGP signature