aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorXin Long <[email protected]>2021-11-24 17:11:12 +0000
committerJakub Kicinski <[email protected]>2021-11-26 04:58:16 +0000
commit0c51dffcc8a2821cb18ef6fdf5b02ea891b850c4 (patch)
treeed1fe5d149645d972444afa3e366f70743b5849b /net/unix/af_unix.c
parentMerge branch 'net-ipa-gsi-channel-flow-control' (diff)
downloadkernel-0c51dffcc8a2821cb18ef6fdf5b02ea891b850c4.tar.gz
kernel-0c51dffcc8a2821cb18ef6fdf5b02ea891b850c4.zip
tipc: delete the unlikely branch in tipc_aead_encrypt
When a skb comes to tipc_aead_encrypt(), it's always linear. The unlikely check 'skb_cloned(skb) && tailen <= skb_tailroom(skb)' can completely be taken care of in skb_cow_data() by the code in branch "if (!skb_has_frag_list())". Also, remove the 'TODO:' annotation, as the pages in skbs are not writable, see more on commit 3cf4375a0904 ("tipc: do not write skb_shinfo frags when doing decrytion"). Signed-off-by: Xin Long <[email protected]> Acked-by: Jon Maloy <[email protected]> Link: https://lore.kernel.org/r/47a478da0b6095b76e3cbe7a75cbd25d9da1df9a.1637773872.git.lucien.xin@gmail.com Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions