diff options
author | Akihiko Odaki <akihiko.odaki@daynix.com> | 2023-10-05 16:21:36 +0900 |
---|---|---|
committer | Martin KaFai Lau <martin.lau@kernel.org> | 2023-10-05 22:33:50 -0700 |
commit | 9c8c3fa3a52bc55696ccc4dfcb8a49f969b5fb0e (patch) | |
tree | 2131500823600dfb6ba4f1ec486ec90891239299 /include/linux/filter.h | |
parent | d549854bc58f05af9ab660b3461383eea623ff89 (diff) | |
download | linux-stable-9c8c3fa3a52bc55696ccc4dfcb8a49f969b5fb0e.tar.gz linux-stable-9c8c3fa3a52bc55696ccc4dfcb8a49f969b5fb0e.tar.bz2 linux-stable-9c8c3fa3a52bc55696ccc4dfcb8a49f969b5fb0e.zip |
bpf: Fix the comment for bpf_restore_data_end()
The comment used to say:
> Restore data saved by bpf_compute_data_pointers().
But bpf_compute_data_pointers() does not save the data;
bpf_compute_and_save_data_end() does.
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Acked-by: Stanislav Fomichev <sdf@google.com>
Link: https://lore.kernel.org/r/20231005072137.29870-1-akihiko.odaki@daynix.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Diffstat (limited to 'include/linux/filter.h')
-rw-r--r-- | include/linux/filter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/filter.h b/include/linux/filter.h index 27406aee2d40..ff7ecc89d3dd 100644 --- a/include/linux/filter.h +++ b/include/linux/filter.h @@ -736,7 +736,7 @@ static inline void bpf_compute_and_save_data_end( cb->data_end = skb->data + skb_headlen(skb); } -/* Restore data saved by bpf_compute_data_pointers(). */ +/* Restore data saved by bpf_compute_and_save_data_end(). */ static inline void bpf_restore_data_end( struct sk_buff *skb, void *saved_data_end) { |