Skip to content

🍒 plugins/cpu: Ignore invalid CPU info when reading /proc/cpuinfo

Arjen Hiemstra requested to merge work/cherry-pick-c5bc0067 into Plasma/6.2

On some systems, /proc/cpuinfo contains non-core related data. When that happens, we would end up creating an invalid CpuInfo object that would later on crash ksystemstats. Instead, ignore said CpuInfo object properly so we don't crash.

Patch based on Jonathan L Hanmann's suggestion from the bug report.

BUG: 493093

(cherry picked from commit c5bc0067)

Co-authored-by: Arjen Hiemstra ahiemstra@heimr.nl

Merge request reports

Loading