mirror of
https://github.com/nelsbrock/dev-tictactoe.git
synced 2026-08-14 20:56:49 +02:00
fix: increase *ppos in tictactoe_write
This commit is contained in:
@@ -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