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.
2 parents 19ec2e5 + e98d519 commit 63980d4Copy full SHA for 63980d4
main.c
@@ -428,7 +428,7 @@ static int kxo_open(struct inode *inode, struct file *filp)
428
static int kxo_release(struct inode *inode, struct file *filp)
429
{
430
pr_debug("kxo: %s\n", __func__);
431
- if (atomic_dec_and_test(&open_cnt) == 0) {
+ if (atomic_dec_and_test(&open_cnt)) {
432
del_timer_sync(&timer);
433
flush_workqueue(kxo_workqueue);
434
fast_buf_clear();
0 commit comments