From: Rob Clark Date: Sat, 7 Jun 2014 14:55:39 +0000 (-0400) Subject: drm: fix uninitialized acquire_ctx fields (v2) X-Git-Tag: omap-for-v3.16/fixes-rc4~80^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb54918af7e7a607af8b70ba052a35ff8acb8620;p=pandora-kernel.git 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ä Signed-off-by: Rob Clark Reviewed-by: Ville Syrjälä Tested-by: Ville Syrjälä Signed-off-by: Dave Airlie --- Reading git-diff-tree failed