Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[3/4] I/OAT: fix async_tx.callback checking

async_tx.callback should be checked for the first
not the last descriptor in the chain.

Cc: <stable@kernel.org>
Signed-off-by: Maciej Sosnowski <maciej.sosnowski@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Maciej Sosnowski and committed by
David S. Miller
12ccea24 c2c0b4c5

+2 -2
+2 -2
drivers/dma/ioat_dma.c
··· 525 525 } 526 526 527 527 hw->ctl = IOAT_DMA_DESCRIPTOR_CTL_CP_STS; 528 - if (new->async_tx.callback) { 528 + if (first->async_tx.callback) { 529 529 hw->ctl |= IOAT_DMA_DESCRIPTOR_CTL_INT_GN; 530 530 if (first != new) { 531 531 /* move callback into to last desc */ ··· 617 617 } 618 618 619 619 hw->ctl |= IOAT_DMA_DESCRIPTOR_CTL_CP_STS; 620 - if (new->async_tx.callback) { 620 + if (first->async_tx.callback) { 621 621 hw->ctl |= IOAT_DMA_DESCRIPTOR_CTL_INT_GN; 622 622 if (first != new) { 623 623 /* move callback into to last desc */