[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200901202345.47792.arnd@arndb.de>
Date: Tue, 20 Jan 2009 23:45:47 +0100
From: Arnd Bergmann <arnd@...db.de>
To: "Christian Eggers" <ceggers@....de>
Cc: linux-kernel@...r.kernel.org, netdev@...r.kernel.org,
David Miller <davem@...emloft.net>
Subject: Re: [PATCH] usb/mcs7830: Don't use buffers from stack for USB transfers
On Tuesday 20 January 2009, you wrote:
> From: Christian Eggers <christian.eggers@...hrein.de>
>
> mcs7830_set_reg() and mcs7830_get_reg() are called with buffers
> from stack which must not be used directly for USB transfers.
> This causes corruption of the stack particulary on non x86
> architectures because DMA may be used for these transfers.
>
> Signed-off-by: Christian Eggers <christian.eggers@...hrein.de>
Have you observed problems with this, or just suspected trouble?
When I wrote this code, I looked at other code doing the same
and assumed it was ok, because usb_control_msg waits for the
DMA to complete before returning.
Is the problem only on systems that have noncoherent DMA, or
something else?
> This is my first patch submission for Linux. I hope everything is fine.
I was about to say that you should have Cc:'d me, but then I noticed
that I'm not listed in the driver as maintainer, nor in the MAINTAINERS
file, so I can't really complain here ;-)
Arnd <><
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists