aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorXiu Jianfeng <[email protected]>2022-06-17 17:44:12 +0800
committerPaul Moore <[email protected]>2022-06-20 21:05:40 -0400
commitef54ccb61616d8293bc68220d88a8e74271141b5 (patch)
tree5e92d231c0ecd7331cec51bfa272edc7c8f06e31 /scripts/gdb/linux/utils.py
parent15ec76fb29be31df2bccb30fc09875274cba2776 (diff)
selinux: selinux_add_opt() callers free memory
The selinux_add_opt() function may need to allocate memory for the mount options if none has already been allocated, but there is no need to free that memory on error as the callers handle that. Drop the existing kfree() on error to help increase consistency in the selinux_add_opt() error handling. This patch also changes selinux_add_opt() to return -EINVAL when the mount option value, @s, is NULL. It currently return -ENOMEM. Link: https://lore.kernel.org/lkml/[email protected]/T/ Suggested-by: Paul Moore <[email protected]> Signed-off-by: Xiu Jianfeng <[email protected]> [PM: fix subject, rework commit description language] Signed-off-by: Paul Moore <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions