aboutsummaryrefslogtreecommitdiffstats
path: root/lib/netdev-notifier-error-inject.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <[email protected]>2025-02-08 10:55:42 +0000
committerLen Brown <[email protected]>2025-02-09 16:56:00 +0000
commit5132681dcd96b2a8c357b6e5d93e9876924bb80b (patch)
treeea1d924ed54d8f31fdf29785b336253310a0dac1 /lib/netdev-notifier-error-inject.c
parenttools/power turbostat: Allow Zero return value for some RAPL registers (diff)
downloadkernel-5132681dcd96b2a8c357b6e5d93e9876924bb80b.tar.gz
kernel-5132681dcd96b2a8c357b6e5d93e9876924bb80b.zip
tools/power turbostat: Fix names matching
Fix the 'find_msrp_by_name()' function which returns incorrect matches for cases like this: s1 = "C1-"; find_msrp_by_name(head, s1); Inside 'find_msrp_by_name()': ... s2 = "C1" if !(strcnmp(s1, s2, len(s2))) // Incorrect match! return mp; Full strings should be match istead. Switch to 'strcmp()' to fix the problem. Signed-off-by: Artem Bityutskiy <[email protected]> Signed-off-by: Len Brown <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions