aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/DocBook/drm.tmpl
diff options
context:
space:
mode:
authorRob Clark <robdclark@gmail.com>2014-06-07 10:55:39 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-06-18 13:50:25 +0200
commitc3e25ae34fab3557b17a585446b5576e49d2f203 (patch)
treeac0ecd3dc3135398ac02c7808560feef63ae0e97 /Documentation/DocBook/drm.tmpl
parentdrm: Driver-specific ioctls range from 0x40 to 0x9f (diff)
downloadlinux-dev-c3e25ae34fab3557b17a585446b5576e49d2f203.tar.xz
linux-dev-c3e25ae34fab3557b17a585446b5576e49d2f203.zip
drm: fix uninitialized acquire_ctx fields (v2)
The acquire ctx will typically be declared on the stack, which means we could have garbage values for any uninitialized field. In this case, it was triggering WARN_ON()s because 'contended' had garbage value. Go ahead and use memset() to be more future-proof. v2: now with extra brown paper bag Reported-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Rob Clark <robdclark@gmail.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Tested-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'Documentation/DocBook/drm.tmpl')
0 files changed, 0 insertions, 0 deletions