[PATCH i-g-t v3 1/2] lib/igt_chamelium: check drmModeGetConnector() before using

Coelho, Luciano luciano.coelho at intel.com
Wed Jun 12 13:58:32 UTC 2024


On Fri, 2024-06-07 at 16:41 +0200, Kamil Konieczny wrote:
> Hi Luca,
> On 2024-05-30 at 11:59:07 +0300, Luca Coelho wrote:
> > The drmModeGetConnector() function can return NULL in some cases, so
> > we need to check the return value before accessing it.  This is not
> > being checked in wait_for_connected_state(), so fix that.
> > 
> > Cc: Mark Yacoub <markyacoub at chromium.org>
> > Cc: Manasi Navare <navaremanasi at chromium.org>
> > Cc: Kamil Konieczny <kamil.konieczny at linux.intel.com>
> > Signed-off-by: Luca Coelho <luciano.coelho at intel.com>
> 
> Reviewed-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>

Thanks!

--
Cheers,
Luca.


More information about the igt-dev mailing list