mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-22 23:13:01 +02:00
perf sched: Use RC_CHK_EQUAL() to compare pointers
So that it can check two pointers to the same object properly when
REFCNT_CHECKING is on.
Fixes: 78c32f4cb1
("libperf rc_check: Add RC_CHK_EQUAL")
Reviewed-by: Ian Rogers <irogers@google.com>
Tested-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250703014942.1369397-7-namhyung@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
This commit is contained in:
parent
117e5c33b1
commit
7a4002ec9e
|
@ -994,7 +994,7 @@ thread_atoms_search(struct rb_root_cached *root, struct thread *thread,
|
|||
else if (cmp < 0)
|
||||
node = node->rb_right;
|
||||
else {
|
||||
BUG_ON(thread != atoms->thread);
|
||||
BUG_ON(!RC_CHK_EQUAL(thread, atoms->thread));
|
||||
return atoms;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user