Skip to content
Commit 5da5231b authored by George Kennedy's avatar George Kennedy Committed by Damien Le Moal
Browse files

libata: if T_LENGTH is zero, dma direction should be DMA_NONE



Avoid data corruption by rejecting pass-through commands where
T_LENGTH is zero (No data is transferred) and the dma direction
is not DMA_NONE.

Cc: <stable@vger.kernel.org>
Reported-by: default avatar <syzkaller&lt;syzkaller@googlegroups.com>
Signed-off-by: default avatarGeorge <Kennedy&lt;george.kennedy@oracle.com>
Signed-off-by: default avatarDamien Le Moal <damien.lemoal@opensource.wdc.com>
parent 2585cf9d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment