[PATCH][next] drm/kmb: Fix dereference of pointer plane before a null check
Daniel Stone
daniel at fooishbar.org
Wed Jul 30 13:53:25 UTC 2025
Hi,
On Wed, 30 Jul 2025 at 14:35, Colin Ian King <colin.i.king at gmail.com> wrote:
> Currently pointer plane is being dereferenced on the calls to
> drm_atomic_get_old_plane_state and drm_atomic_get_new_plane_state
> when assigning old_plane_state and new_plane_state, this could
> lead to a null pointer dereference. Fix this by first performing
> a null pointer check on plane, then assigning old_plane_state and
> new_plance_state and then null pointer checking these.
plane cannot be NULL, so that check should just be deleted instead.
Cheers,
Daniel
More information about the dri-devel
mailing list