diff options
author | Eli Billauer <eli.billauer@gmail.com> | 2016-02-24 11:40:51 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-05 23:19:39 +0300 |
commit | ba327173ef48c12cf6f326441c74f373fa3be220 (patch) | |
tree | d026f0eb8411ea9c98b59271a4a06ebf0c3d5c1e /drivers/char/genrtc.c | |
parent | a75fa128236bc2fdaa5e412145cbd577e42e14c2 (diff) | |
download | linux-ba327173ef48c12cf6f326441c74f373fa3be220.tar.xz |
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>
Diffstat (limited to 'drivers/char/genrtc.c')
0 files changed, 0 insertions, 0 deletions