Skip to content
Commit 61295b8c authored by George Kennedy's avatar George Kennedy Committed by Greg Kroah-Hartman
Browse files

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



commit 5da5231b upstream.

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>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8938a447
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment