pmdasmart: fix Coverity FORWARD_NULL and TOCTOU warnings - #2707
Conversation
Fix both warnings from Coverity from the recent pmdasmart changes
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Repository UI (inherited), Organization UI (inherited) Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 SummarySummary by CodeRabbit
WalkthroughThe SMART PMDA now detects partitions by opening the sysfs ChangesSMART device enumeration
Poem
Merge Risk: ⚪ Minimal · up to SMART device enumeration now safely identifies partitions and avoids sorting an empty device list. The change addresses the reported safeguards with no remaining merge-blocking risk. 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Fix two Coverity defects introduced in the sysfs enumeration change (commit 56d3561)