Messages in this thread |  | | Date | Thu, 4 Oct 2018 21:56:05 +0200 | From | Maxime Ripard <> | Subject | Re: [PATCH v2 2/2] drm/sun4i: tcon: prevent tcon->panel dereference if null |
| |
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 [unhandled content-type:application/pgp-signature] |  |