[PATCH] drm: fix uninitialized acquire_ctx fields (v2)

2014-06-23 Thread Jani Nikula
On Wed, 18 Jun 2014, Ville Syrj?l? wrote: > On Sat, Jun 07, 2014 at 10:55:39AM -0400, Rob Clark wrote: >> 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 'conten

[PATCH] drm: fix uninitialized acquire_ctx fields (v2)

2014-06-18 Thread Ville Syrjälä
On Sat, Jun 07, 2014 at 10:55:39AM -0400, Rob Clark wrote: > 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 me

[PATCH] drm: fix uninitialized acquire_ctx fields (v2)

2014-06-07 Thread Rob Clark
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