syswrap-linux.c (sys_bpf): Compare raw_tracepoint.name against 0, not NULL

raw_tracepoint.name is a __vki_u64 (even on 32bit arches), so compare
against zero, not NULL, to avoid a gcc warning.
This commit is contained in:
Mark Wielaard 2022-06-09 22:51:56 +02:00
parent 61ddbc1fc3
commit 438d5e956d

View File

@ -12938,7 +12938,7 @@ PRE(sys_bpf)
break;
}
/* Name is limited to 128 characters in kernel/bpf/syscall.c. */
if (attr->raw_tracepoint.name != NULL)
if (attr->raw_tracepoint.name != 0)
pre_asciiz_str(tid, attr->raw_tracepoint.name, 128,
"bpf(attr->raw_tracepoint.name)");
}