Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t v2 0/2] check drmModeGetConnector() return value in some missing places
@ 2024-05-28  7:58 Luca Coelho
  2024-05-28  7:58 ` [PATCH i-g-t v2 1/2] lib/igt_chamelium: check drmModeGetConnector() return in wait_for_connected_state() Luca Coelho
                   ` (6 more replies)
  0 siblings, 7 replies; 18+ messages in thread
From: Luca Coelho @ 2024-05-28  7:58 UTC (permalink / raw)
  To: igt-dev; +Cc: kamil.konieczny

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


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2024-06-12 13:58 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-28  7:58 [PATCH i-g-t v2 0/2] check drmModeGetConnector() return value in some missing places Luca Coelho
2024-05-28  7:58 ` [PATCH i-g-t v2 1/2] lib/igt_chamelium: check drmModeGetConnector() return in wait_for_connected_state() Luca Coelho
2024-05-29 16:06   ` Kamil Konieczny
2024-05-29 21:13     ` Luca Coelho
2024-06-07 14:38       ` Kamil Konieczny
2024-06-12 13:55         ` Luca Coelho
2024-05-28  7:58 ` [PATCH i-g-t v2 2/2] tests/intel: check drmModeGetConnector() return in i915_pm_rpm Luca Coelho
2024-05-29 16:37   ` Kamil Konieczny
2024-05-29 21:45     ` Luca Coelho
2024-06-07 14:39       ` Kamil Konieczny
2024-06-12 13:57         ` Luca Coelho
2024-05-28 18:25 ` ✓ CI.xeBAT: success for check drmModeGetConnector() return value in some missing places (rev3) Patchwork
2024-05-28 18:33 ` ✓ Fi.CI.BAT: " Patchwork
2024-05-28 19:38 ` ✓ CI.xeFULL: " Patchwork
2024-05-29 11:05 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-05-29 11:50   ` Luca Coelho
2024-05-30  8:57     ` Illipilli, TejasreeX
2024-05-30  7:49 ` ✓ Fi.CI.IGT: success " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox