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

Luca Coelho luciano.coelho at intel.com
Tue May 28 07:58:53 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]

Please review.

Cheers,
Luca.


Luca Coelho (2):
  lib/igt_chamelium: check drmModeGetConnector() return in
    wait_for_connected_state()
  tests/intel: check drmModeGetConnector() return in i915_pm_rpm

 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