mirror of
				https://github.com/torvalds/linux.git
				synced 2025-10-31 08:38:45 +02:00 
			
		
		
		
	bpf: Change 'BPF_ADD' to 'BPF_AND' in print_bpf_insn()
This 'BPF_ADD' is duplicated, and I belive it should be 'BPF_AND'.
Fixes: 981f94c3e9 ("bpf: Add bitwise atomic instructions")
Signed-off-by: Menglong Dong <dong.menglong@zte.com.cn>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Brendan Jackman <jackmanb@google.com>
Link: https://lore.kernel.org/bpf/20210127022507.23674-1-dong.menglong@zte.com.cn
			
			
This commit is contained in:
		
							parent
							
								
									86ce322d21
								
							
						
					
					
						commit
						60e578e82b
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -161,7 +161,7 @@ void print_bpf_insn(const struct bpf_insn_cbs *cbs, | |||
| 				insn->dst_reg, | ||||
| 				insn->off, insn->src_reg); | ||||
| 		else if (BPF_MODE(insn->code) == BPF_ATOMIC && | ||||
| 			 (insn->imm == BPF_ADD || insn->imm == BPF_ADD || | ||||
| 			 (insn->imm == BPF_ADD || insn->imm == BPF_AND || | ||||
| 			  insn->imm == BPF_OR || insn->imm == BPF_XOR)) { | ||||
| 			verbose(cbs->private_data, "(%02x) lock *(%s *)(r%d %+d) %s r%d\n", | ||||
| 				insn->code, | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Menglong Dong
						Menglong Dong