9pfs: adjust the order of resource cleanup in device unrealize
commit4774718e5c194026ba5ee7a28d9be49be3080e42
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)
treeca05cf27b6756f41bcfbce27791a8d247223eebf
parent00227fefd2059464cd2f59aed29944874c630e2f
9pfs: adjust the order of resource cleanup in device unrealize

Unrealize should undo things that were set during realize in
reverse order. So should do in the error path in realize.

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.c