9pfs: add cleanup operation for handle backend driver
commit971f406b77a6eb84e0ad27dcc416b663765aee30
authorLi Qiang <liq3ea@gmail.com>
Wed, 23 Nov 2016 12:53:34 +0000 (23 13:53 +0100)
committerGreg Kurz <groug@kaod.org>
Wed, 23 Nov 2016 12:53:34 +0000 (23 13:53 +0100)
treed55a829a9895302a62aa3a15eb89197cba580b5a
parent702dbcc274e2ca43be20ba64c758c0ca57dab91d
9pfs: add cleanup operation for handle backend driver

In the init operation of handle backend dirver, it allocates a
handle_data struct and opens a mount file. We should free these
resources when the 9pfs device is unrealized. This is what this
patch does.

Signed-off-by: Li Qiang <liq3ea@gmail.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Signed-off-by: Greg Kurz <groug@kaod.org>
hw/9pfs/9p-handle.c