Re: [PATCH] HFS: btree: fix missing error check after hfs_bnode_find()
From: Markus Elfring
Date: Wed Dec 10 2025 - 12:10:03 EST
> In hfs_brec_insert() and hfs_brec_update_parent(), hfs_bnode_find()
> may return ERR_PTR() on failure, but the result was used without
> checking, risking NULL pointer dereference or invalid pointer usage.
>
> Add IS_ERR() checks after these calls and return PTR_ERR()
> on error.
* Can an other word wrapping look eventually a bit nicer here?
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.18#n658
* How do you think about to add any tags (like “Fixes” and “Cc”) accordingly?
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.18#n145
Regards,
Markus