mirror of
https://github.com/nelsbrock/dev-tictactoe.git
synced 2026-10-13 16:59:34 +02:00
fix: increase *ppos in tictactoe_write
This commit is contained in:
1 file changed
+4
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user