(subset) [PATCH] drm/imagination: Move dereference after NULL check in pvr_mmu_backing_page_init()

Maxime Ripard mripard at kernel.org
Fri Dec 8 09:36:21 UTC 2023


On Wed, 06 Dec 2023 17:37:24 +0300, Dan Carpenter wrote:
> This code dereferences "page->pvr_dev" and then checked for NULL on the
> next line.  Re-order it to avoid a potential NULL pointer dereference.
> 
> 

Applied to drm/drm-misc (drm-misc-next).

Thanks!
Maxime



More information about the dri-devel mailing list