]> git.baikalelectronics.ru Git - kernel.git/commit
ch_ktls: Correction in trimmed_len calculation
authorRohit Maheshwari <rohitm@chelsio.com>
Mon, 9 Nov 2020 10:51:35 +0000 (16:21 +0530)
committerJakub Kicinski <kuba@kernel.org>
Thu, 12 Nov 2020 00:30:37 +0000 (16:30 -0800)
commit6934b8a7866472eea95e741327cbf6f4e5eeb954
treefdacf211cada0d4e874f91d8b91ad5e23e9f9889
parentb7d781951b564c4a67d86d0dcf11d1497cfd2b1a
ch_ktls: Correction in trimmed_len calculation

trimmed length calculation goes wrong if skb has only tag part
to send. It should be zero if there is no data bytes apart from
TAG.

Fixes: 08177fd6234d ("chcr: Handle first or middle part of record")
Signed-off-by: Rohit Maheshwari <rohitm@chelsio.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c