All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@intel.com>
To: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH RESEND] drm: fix drm_local_map allocation size
Date: Wed, 03 Apr 2013 12:05:02 +0300	[thread overview]
Message-ID: <87k3oknfwh.fsf@intel.com> (raw)
In-Reply-To: <1360657392-27557-1-git-send-email-jani.nikula@intel.com>


ping

On Tue, 12 Feb 2013, Jani Nikula <jani.nikula@intel.com> wrote:
> list->map is struct drm_local_map *, not struct drm_map_list *.
>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
>
> ---
>
> Found this small snippet laying around, I guess it fell between the cracks.
> ---
>  drivers/gpu/drm/drm_gem.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/drm_gem.c b/drivers/gpu/drm/drm_gem.c
> index 24efae4..6337edd 100644
> --- a/drivers/gpu/drm/drm_gem.c
> +++ b/drivers/gpu/drm/drm_gem.c
> @@ -343,7 +343,7 @@ drm_gem_create_mmap_offset(struct drm_gem_object *obj)
>  
>  	/* Set the object up for mmap'ing */
>  	list = &obj->map_list;
> -	list->map = kzalloc(sizeof(struct drm_map_list), GFP_KERNEL);
> +	list->map = kzalloc(sizeof(*list->map), GFP_KERNEL);
>  	if (!list->map)
>  		return -ENOMEM;
>  
> -- 
> 1.7.9.5

      reply	other threads:[~2013-04-03  9:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-12  8:23 [PATCH RESEND] drm: fix drm_local_map allocation size Jani Nikula
2013-04-03  9:05 ` Jani Nikula [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k3oknfwh.fsf@intel.com \
    --to=jani.nikula@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.