watchdog: 6300esb: add exit function
commiteb7a20a3616085d46aa6b4b4224e15587ec67e6e
authorLi Qiang <liqiang6-s@360.cn>
Tue, 29 Nov 2016 01:49:04 +0000 (28 17:49 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 22 Dec 2016 15:00:23 +0000 (22 16:00 +0100)
tree744851a2d4a26e3d43304f18d435c8c5b2c00431
parent1f4e496e1fc2eb6c8bf377a0f9695930c380bfd3
watchdog: 6300esb: add exit function

When the Intel 6300ESB watchdog is hot unplug. The timer allocated
in realize isn't freed thus leaking memory leak. This patch avoid
this through adding the exit function.

Signed-off-by: Li Qiang <liqiang6-s@360.cn>
Message-Id: <583cde9c.3223ed0a.7f0c2.886e@mx.google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/watchdog/wdt_i6300esb.c