aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorOndrej Mosnacek <[email protected]>2020-05-01 19:51:11 +0000
committerPaul Moore <[email protected]>2020-05-01 20:08:46 +0000
commit46619b44e431d85d64a8dfcb7166d0ae098544c8 (patch)
tree4efa8c85fa18e599d353f1d2e2df7f9e88a44540 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentselinux: simplify range_write() (diff)
downloadkernel-46619b44e431d85d64a8dfcb7166d0ae098544c8.tar.gz
kernel-46619b44e431d85d64a8dfcb7166d0ae098544c8.zip
selinux: fix return value on error in policydb_read()
The value of rc is still zero from the last assignment when the error path is taken. Fix it by setting it to -ENOMEM before the hashtab_create() call. Reported-by: Dan Carpenter <[email protected]> Fixes: e67b2ec9f617 ("selinux: store role transitions in a hash table") Signed-off-by: Ondrej Mosnacek <[email protected]> Signed-off-by: Paul Moore <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions