jme: Fix unmap error (Causing system freeze)
authorGuo-Fu Tseng <cooldavid@cooldavid.org>
Thu, 21 Jul 2011 02:21:05 +0000 (10:21 +0800)
committerGuo-Fu Tseng <cooldavid@cooldavid.org>
Thu, 21 Jul 2011 02:21:05 +0000 (10:21 +0800)
commit52edb99adf51118bb19943a38063d2554761fc68
tree1123af5c7110a1923c5ed38b3d7e252321dc3e2f
parent18783c49db818f2d33a6a86303f45972b6893116
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. :)
jme.c