Re: [PATCH next] drm/fsl-dcu: prevent error pointer dereference in fsl_dcu_load()

2024-10-23 Thread Matthias Schiffer
On Wed, 2024-10-23 at 11:35 +0300, Dan Carpenter wrote: > > The syscon_regmap_lookup_by_compatible() function returns -ENODEV if > there isn't a compatible for it or other error pointers on error. This > code only checks for -ENODEV instead of checking for other errors so it > could lead to an er

[PATCH next] drm/fsl-dcu: prevent error pointer dereference in fsl_dcu_load()

2024-10-23 Thread Dan Carpenter
The syscon_regmap_lookup_by_compatible() function returns -ENODEV if there isn't a compatible for it or other error pointers on error. This code only checks for -ENODEV instead of checking for other errors so it could lead to an error pointer dereference inside the regmap_update_bits() function.