Skip to content

Commit 1d01083

Browse files
Clear end flag on device close to allow re-execution (#19)
Previously, after quitting the game via Ctrl+Q, an internal flag remained set, preventing subsequent game runs unless the module was reloaded. This patch resets the termination flag when the device is closed.
1 parent 30aa86d commit 1d01083

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,7 @@ static int kxo_release(struct inode *inode, struct file *filp)
435435
fast_buf_clear();
436436
}
437437
pr_info("release, current cnt: %d\n", atomic_read(&open_cnt));
438+
attr_obj.end = 48;
438439

439440
return 0;
440441
}

0 commit comments

Comments
 (0)