]> Git Repo - qemu.git/commit
virtiofsd: Changed allocations of iovec to GLib's functions
authorMahmoud Mandour <[email protected]>
Tue, 27 Apr 2021 18:13:33 +0000 (20:13 +0200)
committerDr. David Alan Gilbert <[email protected]>
Thu, 6 May 2021 18:47:44 +0000 (19:47 +0100)
commit01c6c6f982196458d60d4d7cfa963c38947949f5
treece6d4d6d8e23e5921d1e1711cdcff32f267eedb3
parent98bbd186ed49ead7419ca9d9f2915c7cc1dd0083
virtiofsd: Changed allocations of iovec to GLib's functions

Replaced the calls to malloc()/calloc() and their respective
calls to free() of iovec structs with GLib's allocation and
deallocation functions and used g_autofree when appropriate.

Replaced the allocation of in_sg_cpy to g_new() instead of a call
to calloc() and a null-checking assertion. Not g_new0()
because the buffer is immediately overwritten using memcpy.

Signed-off-by: Mahmoud Mandour <[email protected]>
Message-Id: <20210427181333[email protected]>
Signed-off-by: Dr. David Alan Gilbert <[email protected]>
Reviewed-by: Dr. David Alan Gilbert <[email protected]>
tools/virtiofsd/fuse_lowlevel.c
tools/virtiofsd/fuse_virtio.c
This page took 0.033434 seconds and 4 git commands to generate.