acenic: fix the misusage of zero dma address
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Wed, 31 Mar 2010 22:13:05 +0000 (22:13 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Apr 2010 01:38:32 +0000 (18:38 -0700)
commit07e7de8f7a7146b3ac77c52ebd91c93a8370d9a8
treef8236d971e13a2afd5178137ba778deb4b8989a7
parent6c57990696a16ae43ea9fddb131b2784292068ba
acenic: fix the misusage of zero dma address

acenic wrongly assumes that zero is an invalid dma address (calls
dma_unmap_page for only non zero dma addresses). Zero is a valid dma
address on some architectures. The dma length can be used here.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/acenic.c