Repository navigation
Commit b208332
selinux: fix error return code in policydb_read()
[ Upstream commit 4c09f8b ]
Fix to return negative error code -ENOMEM from the kvcalloc() error
handling case instead of 0, as done elsewhere in this function.
Fixes: acdf52d ("selinux: convert to kvmalloc")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 86dced2 commit b208332
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2496 | 2496 | | |
2497 | 2497 | | |
2498 | 2498 | | |
| 2499 | + | |
2499 | 2500 | | |
2500 | 2501 | | |
2501 | 2502 | | |
| |||
0 commit comments