]> git.baikalelectronics.ru Git - kernel.git/commit
jme: Fix unmap error (Causing system freeze)
authorGuo-Fu Tseng <cooldavid@cooldavid.org>
Wed, 20 Jul 2011 16:57:36 +0000 (16:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Jul 2011 22:22:52 +0000 (15:22 -0700)
commitd23413b21d88db72caa49337f91eca752817bd8c
tree99c40627fde925340b565d8aa2883ce6fb49e859
parent0163798132445d5aa00fa4df9e6213ac1bb07ab1
jme: Fix unmap error (Causing system freeze)

This patch add the missing dma_unmap().
Which solved the critical issue of system freeze on heavy load.

Michal Miroslaw's rejected patch:
[PATCH v2 10/46] net: jme: convert to generic DMA API
Pointed out the issue also, thank you Michal.
But the fix was incorrect. It would unmap needed address
when low memory.

Got lots of feedback from End user and Gentoo Bugzilla.
https://bugs.gentoo.org/show_bug.cgi?id=373109
Thank you all. :)

Cc: stable@kernel.org
Signed-off-by: Guo-Fu Tseng <cooldavid@cooldavid.org>
Acked-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/jme.c