mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
block: Convert close calls to qemu_close
This patch converts all block layer close calls, that correspond to qemu_open calls, to qemu_close. Signed-off-by: Corey Bryant <coreyb@linux.vnet.ibm.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
6165f4d85d
commit
2e1e79dae7
8 changed files with 30 additions and 24 deletions
|
@ -1258,7 +1258,7 @@ static int vmdk_create_extent(const char *filename, int64_t filesize,
|
|||
|
||||
ret = 0;
|
||||
exit:
|
||||
close(fd);
|
||||
qemu_close(fd);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -1506,7 +1506,7 @@ static int vmdk_create(const char *filename, QEMUOptionParameter *options)
|
|||
}
|
||||
ret = 0;
|
||||
exit:
|
||||
close(fd);
|
||||
qemu_close(fd);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue