[PATCH i-g-t v3 0/2] check drmModeGetConnector() return value in some missing places

Luca Coelho luciano.coelho at intel.com
Thu May 30 08:59:06 UTC 2024


Hi,

There are some places where the return value of calls to the
drmModeGetConnector() function are not checked, even though it can
return NULL in some cases.

Fix that in lib/igt_chamelium and intel/i915_pm_rpm.

In v2:
   * change igt_warn() to igt_debug() [Kamil]
   * set connected to false when we can't get the connector [Kamil]
   * added Chromium stakeholders in Cc. [Kamil]
   * shortened the commit message a bit. [Kamil]

In v3:
   * changed the commit summaries [Kamil]
   * added more people to CC [Kamil]
   * changed igt_debug() back to igt_warn() [Kamil]
   * added a small excerpt from the bug report [Kamil]

Please review.

Cheers,
Luca.


Luca Coelho (2):
  lib/igt_chamelium: check drmModeGetConnector() before using
  tests/intel/i915_pm_rpm: check drmModeGetConnector() before use

 lib/igt_chamelium.c       | 5 +++++
 tests/intel/i915_pm_rpm.c | 6 ++++++
 2 files changed, 11 insertions(+)

-- 
2.39.2



More information about the igt-dev mailing list