mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-03 18:20:25 +02:00 
			
		
		
		
	bpf: Fix typo in bpf_inode_storage.c
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
This commit is contained in:
		
							parent
							
								
									1a9c72ad4c
								
							
						
					
					
						commit
						84d571d46c
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -183,7 +183,7 @@ BPF_CALL_4(bpf_inode_storage_get, struct bpf_map *, map, struct inode *, inode,
 | 
				
			||||||
	if (sdata)
 | 
						if (sdata)
 | 
				
			||||||
		return (unsigned long)sdata->data;
 | 
							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.
 | 
						 * to have a refcount and cannot be freed.
 | 
				
			||||||
	 */
 | 
						 */
 | 
				
			||||||
	if (flags & BPF_LOCAL_STORAGE_GET_F_CREATE) {
 | 
						if (flags & BPF_LOCAL_STORAGE_GET_F_CREATE) {
 | 
				
			||||||
| 
						 | 
					@ -203,7 +203,7 @@ BPF_CALL_2(bpf_inode_storage_delete,
 | 
				
			||||||
	if (!inode)
 | 
						if (!inode)
 | 
				
			||||||
		return -EINVAL;
 | 
							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.
 | 
						 * to have a refcount and cannot be freed.
 | 
				
			||||||
	 */
 | 
						 */
 | 
				
			||||||
	return inode_storage_delete(inode, map);
 | 
						return inode_storage_delete(inode, map);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue