Skip to content

Commit

Permalink
bpf: Fix typo in bpf_inode_storage.c
Browse files Browse the repository at this point in the history
Fix "gurranteed" -> "guaranteed" in bpf_inode_storage.c

Suggested-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: KP Singh <kpsingh@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20210112075525.256820-4-kpsingh@kernel.org
  • Loading branch information
KP Singh authored and Daniel Borkmann committed Jan 12, 2021
1 parent 1a9c72a commit 84d571d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/bpf/bpf_inode_storage.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ BPF_CALL_4(bpf_inode_storage_get, struct bpf_map *, map, struct inode *, inode,
if (sdata)
return (unsigned long)sdata->data;

/* This helper must only called from where the inode is gurranteed
/* This helper must only called from where the inode is guaranteed
* to have a refcount and cannot be freed.
*/
if (flags & BPF_LOCAL_STORAGE_GET_F_CREATE) {
Expand All @@ -203,7 +203,7 @@ BPF_CALL_2(bpf_inode_storage_delete,
if (!inode)
return -EINVAL;

/* This helper must only called from where the inode is gurranteed
/* This helper must only called from where the inode is guaranteed
* to have a refcount and cannot be freed.
*/
return inode_storage_delete(inode, map);
Expand Down

0 comments on commit 84d571d

Please sign in to comment.