diff options
| author | Jens Axboe <axboe@kernel.dk> | 2019-08-07 12:23:57 -0600 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-09-06 10:18:08 +0200 |
| commit | d2b2a7dd72c6c6cb5bac6b96d8b6bb31ca227825 (patch) | |
| tree | f354fe02a9031fbfe4e3cf88119804b4cdb1dc2f /tools/perf/scripts/python | |
| parent | 114bf652fbb64f77eb99fa5eb7d7b78d9963e6d3 (diff) | |
libata: add SG safety checks in SFF pio transfers
[ Upstream commit 752ead44491e8c91e14d7079625c5916b30921c5 ]
Abort processing of a command if we run out of mapped data in the
SG list. This should never happen, but a previous bug caused it to
be possible. Play it safe and attempt to abort nicely if we don't
have more SG segments left.
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
