From: Mark McLoughlin Date: Mon, 1 Dec 2008 13:57:46 +0000 (+0000) Subject: KVM: make kvm_unregister_irq_ack_notifier() safe X-Git-Tag: v2.6.29-rc1~539^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fdd897e6b5253a45b633f7d334cf3e150bbaf386;p=pandora-kernel.git KVM: make kvm_unregister_irq_ack_notifier() safe We never pass a NULL notifier pointer here, but we may well pass a notifier struct which hasn't previously been registered. Guard against this by using hlist_del_init() which will not do anything if the node hasn't been added to the list and, when removing the node, will ensure that a subsequent call to hlist_del_init() will be fine too. Fixes an oops seen when an assigned device is freed before and IRQ is assigned to it. Signed-off-by: Mark McLoughlin Signed-off-by: Avi Kivity --- Reading git-diff-tree failed