Skip to content
Snippets Groups Projects
Commit 6229db27 authored by Dmitry Osipenko's avatar Dmitry Osipenko
Browse files

drm/panfrost: Fix shrinker list corruption by madvise IOCTL


Calling madvise IOCTL twice on BO causes memory shrinker list corruption
and crashes kernel because BO is already on the list and it's added to
the list again, while BO should be removed from from the list before it's
re-added. Fix it.

Cc: stable@vger.kernel.org
Fixes: 013b6510 ("drm/panfrost: Add madvise and shrinker support")
Signed-off-by: default avatarDmitry Osipenko <dmitry.osipenko@collabora.com>
parent 690bb08b
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment