public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH 0/3] drm: drm_sysfs_connector_add() stuff
@ 2013-11-04 19:18 ville.syrjala
  2013-11-04 19:18 ` [PATCH 1/3] drm/sysfs: Remove stale comments about calling drm_sysfs_connector_add() multiple times ville.syrjala
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: ville.syrjala @ 2013-11-04 19:18 UTC (permalink / raw)
  To: dri-devel; +Cc: intel-gfx

Most drivers don't appear to bother with checking drm_connector_sysfs_add()
return value. That means the recent changes to drm_connector_sysfs_add()
have left most drivers susceptible to oopsing on cleanup if
drm_connector_sysfs_add() somehow failed.

This series makes drm_connector_sysfs_remove() safe to call even if
drm_connector_sysfs_add() failed. I also went a bit further and changed
i915 to check the drm_connector_sysfs_add() return value. Not sure if we
really want that patch now that the danger of oopsing is eliminated...

Ville Syrjälä (3):
      drm/sysfs: Remove stale comments about calling drm_sysfs_connector_add() multiple times
      drm/sysfs: Don't pollute connector->kdev if drm_connector_sysfs_add() fails
      drm/i915: Clean up if drm_sysfs_connector_add() fails

 drivers/gpu/drm/drm_sysfs.c       | 49 ++++++++++++++++++++-------------------
 drivers/gpu/drm/i915/intel_crt.c  | 10 +++++++-
 drivers/gpu/drm/i915/intel_ddi.c  |  5 +++-
 drivers/gpu/drm/i915/intel_dp.c   |  6 ++++-
 drivers/gpu/drm/i915/intel_drv.h  |  2 +-
 drivers/gpu/drm/i915/intel_dsi.c  |  9 ++++++-
 drivers/gpu/drm/i915/intel_dvo.c  |  8 ++++++-
 drivers/gpu/drm/i915/intel_hdmi.c | 16 ++++++++++---
 drivers/gpu/drm/i915/intel_lvds.c |  7 +++++-
 drivers/gpu/drm/i915/intel_sdvo.c | 36 ++++++++++++++++++++++------
 drivers/gpu/drm/i915/intel_tv.c   | 10 +++++++-
 11 files changed, 116 insertions(+), 42 deletions(-)

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

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

end of thread, other threads:[~2013-11-06 15:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-04 19:18 [PATCH 0/3] drm: drm_sysfs_connector_add() stuff ville.syrjala
2013-11-04 19:18 ` [PATCH 1/3] drm/sysfs: Remove stale comments about calling drm_sysfs_connector_add() multiple times ville.syrjala
2013-11-05  7:07   ` Jani Nikula
2013-11-04 19:18 ` [PATCH 2/3] drm/sysfs: Don't pollute connector->kdev if drm_connector_sysfs_add() fails ville.syrjala
2013-11-05  7:13   ` Jani Nikula
2013-11-06 15:14     ` [PATCH v2 2/3] drm/sysfs: Don't pollute connector->kdev if drm_sysfs_connector_add() fails ville.syrjala
2013-11-04 19:18 ` [PATCH 3/3] drm/i915: Clean up " ville.syrjala
2013-11-05  7:23   ` Jani Nikula
2013-11-05  7:36     ` Daniel Vetter

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