From d288d856d145e81971b2cdf2e6a53156dfb3b35d Mon Sep 17 00:00:00 2001 From: Ching-Yun Liang Date: Mon, 14 Apr 2025 13:37:59 +0800 Subject: [PATCH] Clear end flag on device close to allow re-execution 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. --- main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/main.c b/main.c index 731cefa..672c608 100644 --- a/main.c +++ b/main.c @@ -435,6 +435,7 @@ static int kxo_release(struct inode *inode, struct file *filp) fast_buf_clear(); } pr_info("release, current cnt: %d\n", atomic_read(&open_cnt)); + attr_obj.end = 48; return 0; }