summaryrefslogtreecommitdiff
path: root/fs/mbcache.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2016-10-26 14:35:56 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2016-10-26 15:06:51 +0300
commit36343f6ea721e003ed11b48a6a05d77a255b3a62 (patch)
treec32e2452c7269e97ef001eb8f8428a106e9434cf /fs/mbcache.c
parente1e575f6b026734be3b1f075e780e91ab08ca541 (diff)
downloadlinux-36343f6ea721e003ed11b48a6a05d77a255b3a62.tar.xz
KVM: fix OOPS on flush_work
The conversion done by commit 3706feacd007 ("KVM: Remove deprecated create_singlethread_workqueue") is broken. It flushes a single work item &irqfd->shutdown instead of all of them, and even worse if there is no irqfd on the list then you get a NULL pointer dereference. Revert the virt/kvm/eventfd.c part of that patch; to avoid the deprecated function, just allocate our own workqueue---it does not even have to be unbound---with alloc_workqueue. Fixes: 3706feacd007 Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'fs/mbcache.c')
0 files changed, 0 insertions, 0 deletions