]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Zero out DRM object memory upon cleanup
authorThierry Reding <treding@nvidia.com>
Wed, 10 Dec 2014 10:38:49 +0000 (11:38 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 10 Dec 2014 11:05:56 +0000 (12:05 +0100)
commit273bce0e93fa4aba189d6a368f42198a6fdbbddb
tree44d20565fb6df932d615325a01fa44e034be2edb
parent282f08a1e127f922cafc63781ab0ad1853fd9bb5
drm: Zero out DRM object memory upon cleanup

Drivers where the DRM objects have a lifetime that extends beyond that
of the DRM device need to zero out the DRM object memory to void stale
data such as properties. The DRM core code expects to operate on newly
allocated and zeroed out objects and will behave unexpectedly, such as
add duplicate properties, otherwise.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_crtc.c