summaryrefslogtreecommitdiff
path: root/tools/lib/perf/libperf.pc.template
diff options
context:
space:
mode:
authorXu Rao <raoxu@uniontech.com>2026-08-03 17:53:28 +0800
committerMartin K. Petersen (Oracle) <mkp@kernel.org>2026-08-07 12:14:19 -0400
commitc4f6916a99cf105c3ff340b6210fcbba3fa66b35 (patch)
tree44377671794222343ef358060869f944c661f7a1 /tools/lib/perf/libperf.pc.template
parent732cb6bb37fd26863d5786522fb1997e7f5865b4 (diff)
scsi: scsi_debug: Negate wrapped memcmp() result
comp_write_worker() returns true when the compared data matches. memcmp() returns zero for equal data and non-zero for different data, so its result must be negated before it is stored in a bool. The first segment already uses !memcmp(), but the wrapped segment uses memcmp() directly, reversing the match result. Use !memcmp() there as well. Fixes: 38d5c8336e60 ("scsi_debug: add Report supported opcodes+tmfs; Compare and write") Cc: stable@vger.kernel.org Signed-off-by: Xu Rao <raoxu@uniontech.com> Reviewed-by: John Garry <john.g.garry@oracle.com> Link: https://patch.msgid.link/E5AD42E9C0E18633+20260803095328.3445311-1-raoxu@uniontech.com Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
Diffstat (limited to 'tools/lib/perf/libperf.pc.template')
0 files changed, 0 insertions, 0 deletions