Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: <[email protected]> Reported-by: syzkaller<[email protected]> Signed-off-by: George Kennedy<[email protected]> Signed-off-by: Damien Le Moal <[email protected]>
- Loading branch information