ide: ahci: call cleanup function in ahci unit
authorLi Qiang <liq3ea@gmail.com>
Thu, 16 Mar 2017 00:50:14 +0000 (20:50 -0400)
committerJohn Snow <jsnow@redhat.com>
Thu, 16 Mar 2017 00:50:14 +0000 (20:50 -0400)
commitd68f0f778e7f4fbd674627274267f269e40f0b04
treea2cd0735b396786bdb84ad7f56b9df220bc39b61
parentc9f086418a255f386e1c4d2c1418c032eb349537
ide: ahci: call cleanup function in ahci unit

This can avoid memory leak when hotunplug the ahci device.

Signed-off-by: Li Qiang <liqiang6-s@360.cn>
Message-id: 1488449293-80280-4-git-send-email-liqiang6-s@360.cn
Signed-off-by: John Snow <jsnow@redhat.com>
hw/ide/ahci.c