public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Refactoring and error handling from Coverity scan fixes
@ 2024-04-17 12:59 Andrey Albershteyn
  2024-04-17 12:59 ` [PATCH v2 1/3] xfs_fsr: replace atoi() with strtol() Andrey Albershteyn
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Andrey Albershteyn @ 2024-04-17 12:59 UTC (permalink / raw)
  To: cem, linux-xfs; +Cc: djwong, hch, Andrey Albershteyn

Hi all,

Just a few minor patches from feedback on coverity fixes.

v2:
- reduce unnecessary indentation in new flist_find_type() helper
- make new helper static
- add patch to handle strtol() errors
- set errno to zero to avoid catching random errnos

--
Andrey

Andrey Albershteyn (3):
  xfs_fsr: replace atoi() with strtol()
  xfs_db: add helper for flist_find_type for clearer field matching
  xfs_repair: catch strtol() errors

 db/flist.c          | 60 ++++++++++++++++++++++++++++-----------------
 fsr/xfs_fsr.c       | 26 +++++++++++++++++---
 repair/xfs_repair.c | 40 +++++++++++++++++++++++++++++-
 3 files changed, 100 insertions(+), 26 deletions(-)

-- 
2.42.0


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-04-17 15:22 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-17 12:59 [PATCH v2 0/3] Refactoring and error handling from Coverity scan fixes Andrey Albershteyn
2024-04-17 12:59 ` [PATCH v2 1/3] xfs_fsr: replace atoi() with strtol() Andrey Albershteyn
2024-04-17 15:20   ` Darrick J. Wong
2024-04-17 15:21   ` Christoph Hellwig
2024-04-17 12:59 ` [PATCH v2 2/3] xfs_db: add helper for flist_find_type for clearer field matching Andrey Albershteyn
2024-04-17 15:20   ` Darrick J. Wong
2024-04-17 15:22   ` Christoph Hellwig
2024-04-17 12:59 ` [PATCH v2 3/3] xfs_repair: catch strtol() errors Andrey Albershteyn
2024-04-17 15:21   ` Darrick J. Wong
2024-04-17 15:22   ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox