work_from_work: flush_workqueue back in

This commit is contained in:
Ciro Santilli
2017-06-24 10:55:18 +01:00
parent b1b2817a68
commit a4ca09e64f
2 changed files with 4 additions and 0 deletions

View File

@@ -3,6 +3,9 @@ Usage:
/pci.sh /pci.sh
The standard is non-free, obviously: https://pcisig.com/specifications
but Google gives several illegal PDF hits :-)
Like every other hardware, we could interact with PCI on x86 Like every other hardware, we could interact with PCI on x86
using only IO instructions and memory operations. using only IO instructions and memory operations.

View File

@@ -33,6 +33,7 @@ static int myinit(void)
static void myexit(void) static void myexit(void)
{ {
cancel_delayed_work(&next_work); cancel_delayed_work(&next_work);
flush_workqueue(queue);
destroy_workqueue(queue); destroy_workqueue(queue);
} }