summary refs log tree commit diff stats
path: root/scripts/qapi
diff options
context:
space:
mode:
authorMisono Tomohiro <misono.tomohiro@jp.fujitsu.com>2020-02-27 14:59:26 +0900
committerDr. David Alan Gilbert <dgilbert@redhat.com>2020-03-03 15:13:24 +0000
commit16e15a73089102c3d8846792d514e769300fcc3c (patch)
treec5349ad4f26940a69e86bb23385ba40abc3ce9e4 /scripts/qapi
parent104933c4a973960dea605b06fcd5d0d478255d77 (diff)
downloadfocaccia-qemu-16e15a73089102c3d8846792d514e769300fcc3c.tar.gz
focaccia-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 'scripts/qapi')
0 files changed, 0 insertions, 0 deletions