diff options
author | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2019-08-20 16:39:53 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-08-22 01:32:39 +0300 |
commit | 1a701ea924815b0518733aa8d5d05c1f6fa87062 (patch) | |
tree | 7663c0d9ae8e170b832e1928f885a0261800eb3c /fs/dcache.c | |
parent | 221a2bdbd5d3871a5f41d912b2f06cc02e8f8b38 (diff) | |
download | linux-1a701ea924815b0518733aa8d5d05c1f6fa87062.tar.xz |
drm/amdgpu: prevent memory leaks in AMDGPU_CS ioctl
Error out if the AMDGPU_CS ioctl is called with multiple SYNCOBJ_OUT and/or
TIMELINE_SIGNAL chunks, since otherwise the last chunk wins while the
allocated array as well as the reference counts of sync objects are leaked.
Signed-off-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'fs/dcache.c')
0 files changed, 0 insertions, 0 deletions