WSL2-Linux-Kernel/drivers/char/xillybus
Eli Billauer ba327173ef char: xillybus: Fix internal data structure initialization
A couple of fields in a data structure, which is used by the driver only,
were not initialized properly during the driver's setup.

The primary issue with this bug was that channel->wr_buf_size remained zero,
so calls to dma_sync_single_for_cpu() took place with zero size, and
consequently did nothing.

This had a rather minimal practical impact, because

(a) these calls are NOPs on Intel/AMD platforms, as well as other platforms
    with coherent cache, and
(b) it's extremely rare that any cache line would survive between two reads
    from a given DMA buffer

Hence no significant practical difference is expected with this patch.

Signed-off-by: Eli Billauer <eli.billauer@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-03-05 12:19:39 -08:00
..
Kconfig xillybus: XILLYBUS_OF should depend on HAS_DMA 2015-05-24 12:24:35 -07:00
Makefile xillybus: Move out of staging 2014-09-23 23:44:16 -07:00
xillybus.h xillybus: Move out of staging 2014-09-23 23:44:16 -07:00
xillybus_core.c char: xillybus: Fix internal data structure initialization 2016-03-05 12:19:39 -08:00
xillybus_of.c char: constify of_device_id array 2015-03-16 21:10:28 +01:00
xillybus_pcie.c char: xillybus: Allow 64-bit DMA on PCIe interface 2015-08-05 12:27:09 -07:00