Repository navigation
Commit dba89de
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 6a533d6 commit dba89de
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2504 | 2504 | | |
2505 | 2505 | | |
2506 | 2506 | | |
| 2507 | + | |
2507 | 2508 | | |
2508 | 2509 | | |
2509 | 2510 | | |
| |||
0 commit comments