aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <[email protected]>2019-12-11 11:44:08 +0000
committerJohn Johansen <[email protected]>2020-01-02 13:31:40 +0000
commit9c95a278ba7ca3ccc111c165cc74cb23c744fc85 (patch)
tree4984741bc9bcbe491ce6ec6237e90a435b551a01 /drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c
parentLinux 5.5-rc4 (diff)
downloadkernel-9c95a278ba7ca3ccc111c165cc74cb23c744fc85.tar.gz
kernel-9c95a278ba7ca3ccc111c165cc74cb23c744fc85.zip
apparmor: fix bind mounts aborting with -ENOMEM
With commit df323337e507 ("apparmor: Use a memory pool instead per-CPU caches, 2019-05-03"), AppArmor code was converted to use memory pools. In that conversion, a bug snuck into the code that polices bind mounts that causes all bind mounts to fail with -ENOMEM, as we erroneously error out if `aa_get_buffer` returns a pointer instead of erroring out when it does _not_ return a valid pointer. Fix the issue by correctly checking for valid pointers returned by `aa_get_buffer` to fix bind mounts with AppArmor. Fixes: df323337e507 ("apparmor: Use a memory pool instead per-CPU caches") Signed-off-by: Patrick Steinhardt <[email protected]> Signed-off-by: John Johansen <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c')
0 files changed, 0 insertions, 0 deletions