mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
hvc_console: Always schedule resize work on resize
The test to check for a new winsize runs out-of-sync with the underlying tty. After a tty has been released and initialized again, the winsize might differ between the tty and the hp struct. The solution is to simply remove the check and always schedule the resize work. Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com> Acked-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
parent
3d26825ec0
commit
7947cf0dd4
1 changed files with 2 additions and 4 deletions
|
@ -689,10 +689,8 @@ EXPORT_SYMBOL_GPL(hvc_poll);
|
|||
*/
|
||||
void hvc_resize(struct hvc_struct *hp, struct winsize ws)
|
||||
{
|
||||
if ((hp->ws.ws_row != ws.ws_row) || (hp->ws.ws_col != ws.ws_col)) {
|
||||
hp->ws = ws;
|
||||
schedule_work(&hp->tty_resize);
|
||||
}
|
||||
hp->ws = ws;
|
||||
schedule_work(&hp->tty_resize);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue