From mboxrd@z Thu Jan 1 00:00:00 1970 From: Linus Walleij Subject: Re: [PATCH V4 3/5] pinctrl: Add SPEAr pinctrl drivers Date: Wed, 18 Apr 2012 13:24:14 +0200 Message-ID: References: <4F8D2A88.6060309@st.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <4F8D2A88.6060309-qxv4g6HH51o@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org To: Viresh Kumar Cc: devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org, spear-devel-nkJGhpqTU55BDgjK7y7TUQ@public.gmane.org, viresh.linux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: devicetree@vger.kernel.org On Tue, Apr 17, 2012 at 10:32 AM, Viresh Kumar wrote: > This was the place that caused crash for me. > > I would apply following change in my patch before sending pull request > to Arnd. > > - =A0 =A0 =A0 *map =3D kzalloc(sizeof(*map) * count, GFP_KERNEL); > + =A0 =A0 =A0 *map =3D kzalloc(sizeof(**map) * count, GFP_KERNEL); Ah, great you found it! Thanks, Linus Walleij