We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 190515f commit 79ebe91Copy full SHA for 79ebe91
drivers/block/nbd.c
@@ -1980,7 +1980,8 @@ static void nbd_disconnect_and_put(struct nbd_device *nbd)
1980
* config ref and try to destroy the workqueue from inside the work
1981
* queue.
1982
*/
1983
- flush_workqueue(nbd->recv_workq);
+ if (nbd->recv_workq)
1984
+ flush_workqueue(nbd->recv_workq);
1985
if (test_and_clear_bit(NBD_RT_HAS_CONFIG_REF,
1986
&nbd->config->runtime_flags))
1987
nbd_config_put(nbd);
0 commit comments