[PATCH v1] drm/shmem-helper: Remove another errant put in error path

Dmitry Osipenko dmitry.osipenko at collabora.com
Sun Feb 26 23:51:34 UTC 2023


On 2/16/23 18:35, Rob Clark wrote:
> On Sun, Jan 8, 2023 at 1:13 PM Dmitry Osipenko
> <dmitry.osipenko at collabora.com> wrote:
>>
>> drm_gem_shmem_mmap() doesn't own reference in error code path, resulting
>> in the dma-buf shmem GEM object getting prematurely freed leading to a
>> later use-after-free.
>>
>> Fixes: f49a51bfdc8e ("drm/shme-helpers: Fix dma_buf_mmap forwarding bug")
>> Cc: stable at vger.kernel.org
>> Signed-off-by: Dmitry Osipenko <dmitry.osipenko at collabora.com>
> 
> Reviewed-by: Rob Clark <robdclark at gmail.com>

Applied to misc-fixes

-- 
Best regards,
Dmitry



More information about the dri-devel mailing list