diff options
author | Misono Tomohiro | 2020-02-27 06:59:26 +0100 |
---|---|---|
committer | Dr. David Alan Gilbert | 2020-03-03 16:13:24 +0100 |
commit | 16e15a73089102c3d8846792d514e769300fcc3c (patch) | |
tree | c5349ad4f26940a69e86bb23385ba40abc3ce9e4 /tools/virtiofsd/seccomp.c | |
parent | Merge remote-tracking branch 'remotes/jasowang/tags/net-pull-request' into st... (diff) | |
download | qemu-16e15a73089102c3d8846792d514e769300fcc3c.tar.gz qemu-16e15a73089102c3d8846792d514e769300fcc3c.tar.xz qemu-16e15a73089102c3d8846792d514e769300fcc3c.zip |
virtiofsd: passthrough_ll: cleanup getxattr/listxattr
This is a cleanup patch to simplify the following xattr fix and
there is no functional changes.
- Move memory allocation to head of the function
- Unify fgetxattr/flistxattr call for both size == 0 and
size != 0 case
- Remove redundant lo_inode_put call in error path
(Note: second call is ignored now since @inode is already NULL)
Signed-off-by: Misono Tomohiro <misono.tomohiro@jp.fujitsu.com>
Message-Id: <20200227055927.24566-2-misono.tomohiro@jp.fujitsu.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'tools/virtiofsd/seccomp.c')
0 files changed, 0 insertions, 0 deletions