Re: [PATCH v4] xfs: Fix error pointer dereference

From: Carlos Maiolino

Date: Wed Feb 25 2026 - 04:42:53 EST


On Thu, 19 Feb 2026 21:38:25 -0600, Ethan Tidmore wrote:
> The function try_lookup_noperm() can return an error pointer and is not
> checked for one.
>
> Add checks for error pointer in xrep_adoption_check_dcache() and
> xrep_adoption_zap_dcache().
>
> Detected by Smatch:
> fs/xfs/scrub/orphanage.c:449 xrep_adoption_check_dcache() error:
> 'd_child' dereferencing possible ERR_PTR()
>
> [...]

Applied to for-next, thanks!

[1/1] xfs: Fix error pointer dereference
commit: 98899e053df0678bcabde2114d509b0e308cf52c

Best regards,
--
Carlos Maiolino <cem@xxxxxxxxxx>