diff options
| author | Thomas Hellström <[email protected]> | 2024-02-21 07:33:24 +0000 |
|---|---|---|
| committer | Thomas Hellström <[email protected]> | 2024-02-22 09:57:41 +0000 |
| commit | 40510a941d27d405a82dc3320823d875f94625df (patch) | |
| tree | de76e9c61b8f44fda639e12b9367f641f07b528f /drivers/usb/cdns3/cdns3-starfive.c | |
| parent | sparc: Fix undefined reference to fb_is_primary_device (diff) | |
| download | kernel-40510a941d27d405a82dc3320823d875f94625df.tar.gz kernel-40510a941d27d405a82dc3320823d875f94625df.zip | |
drm/ttm: Fix an invalid freeing on already freed page in error path
If caching mode change fails due to, for example, OOM we
free the allocated pages in a two-step process. First the pages
for which the caching change has already succeeded. Secondly
the pages for which a caching change did not succeed.
However the second step was incorrectly freeing the pages already
freed in the first step.
Fix.
Signed-off-by: Thomas Hellström <[email protected]>
Fixes: 379989e7cbdc ("drm/ttm/pool: Fix ttm_pool_alloc error path")
Cc: Christian König <[email protected]>
Cc: Dave Airlie <[email protected]>
Cc: Christian Koenig <[email protected]>
Cc: Huang Rui <[email protected]>
Cc: [email protected]
Cc: <[email protected]> # v6.4+
Reviewed-by: Matthew Auld <[email protected]>
Reviewed-by: Christian König <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/usb/cdns3/cdns3-starfive.c')
0 files changed, 0 insertions, 0 deletions
