Whamcloud - gitweb
LU-18846 osd-ldiskfs: fix error handling in iam_lookup_try 89/58489/2
authorLi Dongyang <dongyangli@ddn.com>
Fri, 21 Mar 2025 01:55:06 +0000 (12:55 +1100)
committerOleg Drokin <green@whamcloud.com>
Mon, 31 Mar 2025 05:57:55 +0000 (05:57 +0000)
commit46924e15edc7810a5cf82a782851c48dca4b7148
tree3be9cc70c2696cf1391dad384a02ed1bea9d5c5e
parent51c4e893185088a0f0fbc4ed4327d216f26f9b5f
LU-18846 osd-ldiskfs: fix error handling in iam_lookup_try

We should check the return code from id_node_read(),
frame->bh could be -EIO or NULL, using it with iam_lock_bh()
could end up crashing.

Change-Id: If9899e2650c6949913217656f803db64c3a0c6fa
Test-Parameters: trivial
Signed-off-by: Li Dongyang <dongyangli@ddn.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/58489
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/osd-ldiskfs/osd_iam.c