[Intel-gfx] [PATCH 1/1] drm/i915: initialize intel_sbi_read return value

Daniel Vetter daniel at ffwll.ch
Sun Jun 10 13:38:52 CEST 2012


On Fri, Jun 08, 2012 at 08:38:19PM -0300, Eugeni Dodonov wrote:
> Prevent possible uninitialized return value from intel_sbi_read call.
> 
> Signed-off-by: Eugeni Dodonov <eugeni.dodonov at intel.com>
I've smashed this one into the other patch with a little comment.
-Daniel

> ---
>  drivers/gpu/drm/i915/intel_display.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
> index c59af67..538f220 100644
> --- a/drivers/gpu/drm/i915/intel_display.c
> +++ b/drivers/gpu/drm/i915/intel_display.c
> @@ -1372,7 +1372,7 @@ static u32
>  intel_sbi_read(struct drm_i915_private *dev_priv, u16 reg)
>  {
>  	unsigned long flags;
> -	u32 value;
> +	u32 value = 0;
>  
>  	spin_lock_irqsave(&dev_priv->dpio_lock, flags);
>  	if (wait_for((I915_READ(SBI_CTL_STAT) & SBI_BUSY) == 0,
> -- 
> 1.7.10.4
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx

-- 
Daniel Vetter
Mail: daniel at ffwll.ch
Mobile: +41 (0)79 365 57 48



More information about the Intel-gfx mailing list