From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760574AbZEANgr (ORCPT ); Fri, 1 May 2009 09:36:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754969AbZEANgh (ORCPT ); Fri, 1 May 2009 09:36:37 -0400 Received: from smtp-outbound-1.vmware.com ([65.115.85.69]:55877 "EHLO smtp-outbound-1.vmware.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751539AbZEANgh (ORCPT ); Fri, 1 May 2009 09:36:37 -0400 From: Dmitry Torokhov To: Johannes Berg Cc: Bob Copeland , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] appletouch: fix DMA to/from stack buffer References: <20090428015844.GA16190@hash.localnet> <1240908294.19534.2.camel@johannes.local> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1240908294.19534.2.camel@johannes.local> X-Mutt-References: <1240908294.19534.2.camel@johannes.local> X-Mutt-Fcc: =sent-mail X-Length: 1266 Date: Fri, 1 May 2009 06:36:36 -0700 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200905010636.36778.dmitry.torokhov@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 28, 2009 at 10:44:54AM +0200, Johannes Berg wrote: > On Mon, 2009-04-27 at 21:58 -0400, Bob Copeland wrote: > > CONFIG_DMA_API_DEBUG spotted an instance of appletouch using > > an array on the stack as a DMA buffer for certain hardware. > > Change it to use a kmalloc()ed buffer instead. > > > > This fixes the following error: > > > Signed-off-by: Bob Copeland > > Reviewed-by: Johannes Berg > > Interestingly, I first thought the GFP_KERNEL is wrong due to > atp_reinit, but the GFP_ATOMIC in that is wrong instead :) > Applied to 'for-linus' branch, thank you. -- Dmitry