From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jani Nikula Subject: Re: [PATCH RESEND] drm: fix drm_local_map allocation size Date: Wed, 03 Apr 2013 12:05:02 +0300 Message-ID: <87k3oknfwh.fsf@intel.com> References: <1360657392-27557-1-git-send-email-jani.nikula@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTP id 1C79DE5F53 for ; Wed, 3 Apr 2013 02:04:11 -0700 (PDT) In-Reply-To: <1360657392-27557-1-git-send-email-jani.nikula@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org ping On Tue, 12 Feb 2013, Jani Nikula wrote: > list->map is struct drm_local_map *, not struct drm_map_list *. > > Signed-off-by: Jani Nikula > > --- > > 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