diff options
| author | Miaohe Lin <[email protected]> | 2022-03-23 23:07:18 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2022-03-24 02:00:35 +0000 |
| commit | 0cbcc92917c5de80f15c24d033566539ad696892 (patch) | |
| tree | 380d8f619508d02bf01eeeaf818fc3a9c208a531 /drivers/gpu/drm/amd/amdgpu/amdgpu_gart.h | |
| parent | kcov: properly handle subsequent mmap calls (diff) | |
| download | kernel-0cbcc92917c5de80f15c24d033566539ad696892.tar.gz kernel-0cbcc92917c5de80f15c24d033566539ad696892.zip | |
kernel/resource: fix kfree() of bootmem memory again
Since commit ebff7d8f270d ("mem hotunplug: fix kfree() of bootmem
memory"), we could get a resource allocated during boot via
alloc_resource(). And it's required to release the resource using
free_resource(). Howerver, many people use kfree directly which will
result in kernel BUG. In order to fix this without fixing every call
site, just leak a couple of bytes in such corner case.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: ebff7d8f270d ("mem hotunplug: fix kfree() of bootmem memory")
Signed-off-by: Miaohe Lin <[email protected]>
Suggested-by: David Hildenbrand <[email protected]>
Cc: Dan Williams <[email protected]>
Cc: Alistair Popple <[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.h')
0 files changed, 0 insertions, 0 deletions
