mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
tty: Make vt's have a tty_port
The vt layer isn't safely handling reference counts to tty object on the input side. Add a tty port structure to the vt layer in order to implement this using the standard helpers. Signed-off-by: Alan Cox <alan@linux.intel.com> Cc: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
e33ac1c10b
commit
ff917ba4f1
2 changed files with 4 additions and 0 deletions
|
@ -21,6 +21,8 @@ struct vt_struct;
|
|||
#define NPAR 16
|
||||
|
||||
struct vc_data {
|
||||
struct tty_port port; /* Upper level data */
|
||||
|
||||
unsigned short vc_num; /* Console number */
|
||||
unsigned int vc_cols; /* [#] Console size */
|
||||
unsigned int vc_rows;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue