summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPaulo Alcantara <pc@manguebit.org>2026-09-13 21:15:41 -0300
committerPaulo Alcantara <pc@manguebit.org>2026-09-14 21:53:08 -0300
commite1253a82bb4c0fed6706a5839fc8b6e01be1abe2 (patch)
tree950d81d4a96fbaaaf991e64ee6dbdd5ae2579f2b /tools/perf/scripts/python
parente1aeaf79dea51e6065da56924bc07e22d59012ac (diff)
downloadlinux-next-e1253a82bb4c0fed6706a5839fc8b6e01be1abe2.tar.gz
linux-next-e1253a82bb4c0fed6706a5839fc8b6e01be1abe2.zip
smb: client: fix fattr leaking on wsl_to_fattr() failure
wsl_to_fattr() mutates fattr fields as it parses each WSL EA. If validation later fails, the function returns false with partially mutated fattr fields that callers do not reset. Fix this by parsing into local variables and only committing them to fattr on success. Closes: https://sashiko.dev/#/patchset/20260906200517.725015-1-pc%40manguebit.org Fixes: 78e26bec4d6d ("smb: client: parse uid, gid, mode and dev from WSL reparse points") Reviewed-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Paulo Alcantara <pc@manguebit.org> Cc: David Howells <dhowells@redhat.com> Cc: Tom Talpey <tom@talpey.com> Cc: Shyam Prasad N <sprasad@microsoft.com> Cc: Ronnie Sahlberg <ronniesahlberg@gmail.com> Cc: Bharath SM <bharathsm@microsoft.com> Cc: Namjae Jeon <linkinjeon@kernel.org> Cc: stable@vger.kernel.org
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions