diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2019-11-27 21:16:44 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-11-29 07:40:29 +0100 |
commit | c5daa6cccdc2f94aca2c9b3fa5f94e4469997293 (patch) | |
tree | 3372cdfae43b0b90d47d89ecb170d87c8b472c2b /drivers/usb | |
parent | net/tls: remove the dead inplace_crypto code (diff) | |
download | linux-c5daa6cccdc2f94aca2c9b3fa5f94e4469997293.tar.xz linux-c5daa6cccdc2f94aca2c9b3fa5f94e4469997293.zip |
net/tls: use sg_next() to walk sg entries
Partially sent record cleanup path increments an SG entry
directly instead of using sg_next(). This should not be a
problem today, as encrypted messages should be always
allocated as arrays. But given this is a cleanup path it's
easy to miss was this ever to change. Use sg_next(), and
simplify the code.
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/usb')
0 files changed, 0 insertions, 0 deletions