On Fri, 11 Nov 2011 18:04:01 +0200 ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä <ville.syrj...@linux.intel.com> > > Avoids having junk in offsets[] and pitches[] arrays. > > Signed-off-by: Ville Syrjälä <ville.syrj...@linux.intel.com> > --- > drivers/gpu/drm/drm_crtc.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c > index 39cccb4..7058ed3 100644 > --- a/drivers/gpu/drm/drm_crtc.c > +++ b/drivers/gpu/drm/drm_crtc.c > @@ -1967,7 +1967,7 @@ int drm_mode_addfb(struct drm_device *dev, > void *data, struct drm_file *file_priv) > { > struct drm_mode_fb_cmd *or = data; > - struct drm_mode_fb_cmd2 r; > + struct drm_mode_fb_cmd2 r = {}; > struct drm_mode_config *config = &dev->mode_config; > struct drm_framebuffer *fb; > int ret = 0;
Yep, doesn't hurt... Acked-by: Jesse Barnes <jbar...@virtuousgeek.org> -- Jesse Barnes, Intel Open Source Technology Center
signature.asc
Description: PGP signature
_______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel