aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/task.c
diff options
context:
space:
mode:
authorRoi Martin <[email protected]>2024-10-10 19:47:17 +0000
committerDavid Sterba <[email protected]>2024-10-11 17:55:04 +0000
commit2ab5e243c2266c841e0f6904fad1514b18eaf510 (patch)
tree2e394de58edc1fda8f57924205d1db530b9613d6 /rust/helpers/task.c
parentbtrfs: send: cleanup unneeded return variable in changed_verity() (diff)
downloadkernel-2ab5e243c2266c841e0f6904fad1514b18eaf510.tar.gz
kernel-2ab5e243c2266c841e0f6904fad1514b18eaf510.zip
btrfs: fix uninitialized pointer free on read_alloc_one_name() error
The function read_alloc_one_name() does not initialize the name field of the passed fscrypt_str struct if kmalloc fails to allocate the corresponding buffer. Thus, it is not guaranteed that fscrypt_str.name is initialized when freeing it. This is a follow-up to the linked patch that fixes the remaining instances of the bug introduced by commit e43eec81c516 ("btrfs: use struct qstr instead of name and namelen pairs"). Link: https://lore.kernel.org/linux-btrfs/[email protected]/ Fixes: e43eec81c516 ("btrfs: use struct qstr instead of name and namelen pairs") CC: [email protected] # 6.1+ Reviewed-by: Anand Jain <[email protected]> Signed-off-by: Roi Martin <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions