fix: increase *ppos in tictactoe_write

This commit is contained in:
2026-04-04 21:12:41 +02:00
parent 2b55717595
commit 12eba69eb1
+4
View File
@@ -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;
}