aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c
diff options
context:
space:
mode:
authorNavid Emamdoost <[email protected]>2020-01-04 21:00:12 +0000
committerLinus Torvalds <[email protected]>2020-01-04 21:55:09 +0000
commita7c46c0c0e3d62f2764cd08b90934cd2aaaf8545 (patch)
tree498a8ece03525f70daa3488c6f38c26b5cfadd96 /drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c
parentmm/oom: fix pgtables units mismatch in Killed process message (diff)
downloadkernel-a7c46c0c0e3d62f2764cd08b90934cd2aaaf8545.tar.gz
kernel-a7c46c0c0e3d62f2764cd08b90934cd2aaaf8545.zip
mm/gup: fix memory leak in __gup_benchmark_ioctl
In the implementation of __gup_benchmark_ioctl() the allocated pages should be released before returning in case of an invalid cmd. Release pages via kvfree(). [[email protected]: rework code flow, return -EINVAL rather than -1] Link: http://lkml.kernel.org/r/[email protected] Fixes: 714a3a1ebafe ("mm/gup_benchmark.c: add additional pinning methods") Signed-off-by: Navid Emamdoost <[email protected]> Reviewed-by: Andrew Morton <[email protected]> Reviewed-by: Ira Weiny <[email protected]> Reviewed-by: John Hubbard <[email protected]> Cc: Keith Busch <[email protected]> Cc: Kirill A. Shutemov <[email protected]> Cc: Dave Hansen <[email protected]> Cc: Dan Williams <[email protected]> Cc: David Hildenbrand <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c')
0 files changed, 0 insertions, 0 deletions