From 12eba69eb124448f60658a1cb9362db7a82fe8a6 Mon Sep 17 00:00:00 2001 From: Niklas Elsbrock Date: Sat, 4 Apr 2026 21:12:41 +0200 Subject: [PATCH] fix: increase `*ppos` in `tictactoe_write` --- tictactoe_main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tictactoe_main.c b/tictactoe_main.c index d863180..e7f1af2 100644 --- a/tictactoe_main.c +++ b/tictactoe_main.c @@ -128,6 +128,8 @@ static ssize_t tictactoe_write(struct file *file, const char __user *buf, tictactoe_game_init(tictactoe_current_game); mutex_unlock(&tictactoe_mutex_current_game); kfree(command_buf); + + *ppos += count; return count; } @@ -169,6 +171,8 @@ static ssize_t tictactoe_write(struct file *file, const char __user *buf, } mutex_unlock(&tictactoe_mutex_current_game); + + *ppos += count; return count; }