[PATCH 2/7] drm: plane: Fix size of formats memcpy()

Jesse Barnes jbarnes at virtuousgeek.org
Fri Nov 11 08:22:19 PST 2011


On Fri, 11 Nov 2011 18:04:02 +0200
ville.syrjala at linux.intel.com wrote:

> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
> 
> Signed-off-by: Ville Syrjälä <ville.syrjala at 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 7058ed3..d3b884e 100644
> --- a/drivers/gpu/drm/drm_crtc.c
> +++ b/drivers/gpu/drm/drm_crtc.c
> @@ -563,7 +563,7 @@ int drm_plane_init(struct drm_device *dev, struct drm_plane *plane,
>  		return -ENOMEM;
>  	}
>  
> -	memcpy(plane->format_types, formats, format_count);
> +	memcpy(plane->format_types, formats, sizeof(uint32_t) * format_count);
>  	plane->format_count = format_count;
>  	plane->possible_crtcs = possible_crtcs;
>  

Duh thank you.

-- 
Jesse Barnes, Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20111111/8dce5021/attachment.pgp>


More information about the dri-devel mailing list