mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
ioat: fix type mismatch for ->dmacount
->dmacount tracks the sequence number of active descriptors. It is written to the DMACOUNT register to update the channel's view of pending descriptors in the chain. The register is 16-bits so ->dmacount should be unsigned and 16-bit as well. Also modify ->desccount to maintain alignment. This was never a problem in practice because we never compared dmacount values, but this is a bug waiting to happen. Signed-off-by: Maciej Sosnowski <maciej.sosnowski@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
This commit is contained in:
parent
f2427e276f
commit
77867fff03
1 changed files with 2 additions and 2 deletions
|
@ -102,8 +102,8 @@ struct ioat_dma_chan {
|
|||
struct delayed_work work;
|
||||
|
||||
int pending;
|
||||
int dmacount;
|
||||
int desccount;
|
||||
u16 dmacount;
|
||||
u16 desccount;
|
||||
|
||||
struct ioatdma_device *device;
|
||||
struct dma_chan common;
|
||||
|
|
Loading…
Reference in a new issue