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

In the init operation of proxy backend dirver, it allocates a
V9fsProxy struct and some other resources. 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-proxy.c