staging: qlge: Fix dma_sync_single calls
authorBenjamin Poirier <bpoirier@suse.com>
Fri, 27 Sep 2019 10:12:03 +0000 (19:12 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2019 15:17:45 +0000 (17:17 +0200)
commit6f5740b1d35ea9d25b895c0eb836aaa7b1ee427b
treefec8e0751a27c9659e17844bb4027bf4fc74b7ad
parent03a0e14bd8bc8df2ea478b336ee65f429375acbb
staging: qlge: Fix dma_sync_single calls

Using the unmap addr elsewhere than unmap calls is a misuse of the dma api.
In prevision of this fix, qlge kept two copies of the dma address around ;)

Fixes: c4e84bde1d59 ("qlge: New Qlogic 10Gb Ethernet Driver.")
Fixes: 7c734359d350 ("qlge: Size RX buffers based on MTU.")
Fixes: 2c9a266afefe ("qlge: Fix receive packets drop.")
Signed-off-by: Benjamin Poirier <bpoirier@suse.com>
Link: https://lore.kernel.org/r/20190927101210.23856-10-bpoirier@suse.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/qlge/qlge.h
drivers/staging/qlge/qlge_main.c