Skip to content

Commit b8a3bc8

Browse files
committed
Merge tag 'for-linus-7.0a-rc6-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip
Pull xen fix from Juergen Gross: "A single fix for a very rare bug introduced in rc5" * tag 'for-linus-7.0a-rc6-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip: xen/privcmd: unregister xenstore notifier on module exit
2 parents f242ac4 + cd7e1fe commit b8a3bc8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/xen/privcmd.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1765,6 +1765,9 @@ static int __init privcmd_init(void)
17651765

17661766
static void __exit privcmd_exit(void)
17671767
{
1768+
if (!xen_initial_domain())
1769+
unregister_xenstore_notifier(&xenstore_notifier);
1770+
17681771
privcmd_ioeventfd_exit();
17691772
privcmd_irqfd_exit();
17701773
misc_deregister(&privcmd_dev);

0 commit comments

Comments
 (0)