Skip to content

Commit 9c8c3fa

Browse files
akihikodakiMartin KaFai Lau
authored andcommitted
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>
1 parent d549854 commit 9c8c3fa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/linux/filter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ static inline void bpf_compute_and_save_data_end(
736736
cb->data_end = skb->data + skb_headlen(skb);
737737
}
738738

739-
/* Restore data saved by bpf_compute_data_pointers(). */
739+
/* Restore data saved by bpf_compute_and_save_data_end(). */
740740
static inline void bpf_restore_data_end(
741741
struct sk_buff *skb, void *saved_data_end)
742742
{

0 commit comments

Comments
 (0)