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; }