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 9043d41 + e16269e commit 3b85299Copy full SHA for 3b85299
simrupt.c
@@ -298,7 +298,7 @@ static int simrupt_open(struct inode *inode, struct file *filp)
298
static int simrupt_release(struct inode *inode, struct file *filp)
299
{
300
pr_debug("simrupt: %s\n", __func__);
301
- if (atomic_dec_and_test(&open_cnt) == 0) {
+ if (atomic_dec_and_test(&open_cnt)) {
302
del_timer_sync(&timer);
303
flush_workqueue(simrupt_workqueue);
304
fast_buf_clear();
0 commit comments