diff options
| author | Gonglei | 2014-11-02 06:37:17 +0100 |
|---|---|---|
| committer | Michael Tokarev | 2014-11-02 08:05:35 +0100 |
| commit | 84f8f3dace8c6e88b1afa828f9abe1e9a57fac1a (patch) | |
| tree | a0c81e5c098c38ab06b882128f3154e6b1ce4711 /include | |
| parent | tap: do not close(fd) in net_init_tap_one (diff) | |
| download | qemu-84f8f3dace8c6e88b1afa828f9abe1e9a57fac1a.tar.gz qemu-84f8f3dace8c6e88b1afa828f9abe1e9a57fac1a.tar.xz qemu-84f8f3dace8c6e88b1afa828f9abe1e9a57fac1a.zip | |
tap: fix possible fd leak in net_init_tap
In hotplugging scenario, taking those true branch, the file
handler do not be closed. Let's close them before return.
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
