]> git.baikalelectronics.ru Git - kernel.git/commit
UAS: fix alignment of scatter/gather segments
authorOliver Neukum <oneukum@suse.com>
Tue, 30 Apr 2019 10:21:45 +0000 (12:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Apr 2019 15:51:42 +0000 (17:51 +0200)
commit30762cf4bd17f8237f616335a47beb188b73b2c4
treec9b5feacf9c6259fb527fb27cc5fc8b8fbccbb66
parent382bfc6c5423a64875ef23e7170e8fba0f3eab8b
UAS: fix alignment of scatter/gather segments

This is the UAS version of

d2473c46e4e10d69640e935d848c8a868a5eaa75
usb-storage: Set virt_boundary_mask to avoid SG overflows

We are not as likely to be vulnerable as storage, as it is unlikelier
that UAS is run over a controller without native support for SG,
but the issue exists.
The issue has been existing since the inception of the driver.

Fixes: 455b0db57612 ("USB: Add UAS driver")
Signed-off-by: Oliver Neukum <oneukum@suse.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/storage/uas.c