]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: unload: fix intel dp encoder cleanup
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 20 Aug 2010 16:08:28 +0000 (18:08 +0200)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 8 Sep 2010 09:13:23 +0000 (10:13 +0100)
commitddee867c7f2e23e9e08dda81f6672d49682847db
tree32ea38450f4d114dc74c11a0ba95c3ae3ee6fa61
parent3cfda2748d4fcf884e0ffece8ce117f93201f310
drm/i915: unload: fix intel dp encoder cleanup

struct intel_dp contains both struct intel_encoder at the beginning (as
it's base-class) and an i2c adapater. When initializing, the i2c adapter
gets assigned

intel_encoder->ddc_adaptor = &intel_dp->adapter

and the generic intel_encode_destroy happily calls kfree on this pointer.
Ouch. Fix this by using a dp specific cleanup function.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_dp.c