Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
74b9b6e1
Commit
74b9b6e1
authored
Jun 10, 2002
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pSeries HVC console: Fix hang up race - from Dave Engebretsen
parent
68587662
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
drivers/char/hvc_console.c
drivers/char/hvc_console.c
+9
-0
No files found.
drivers/char/hvc_console.c
View file @
74b9b6e1
...
...
@@ -98,6 +98,14 @@ static void hvc_close(struct tty_struct *tty, struct file * filp)
spin_unlock_irqrestore
(
&
hp
->
lock
,
flags
);
}
static
void
hvc_hangup
(
struct
tty_struct
*
tty
,
struct
file
*
filp
)
{
struct
hvc_struct
*
hp
=
tty
->
driver_data
;
hp
->
count
=
0
;
hp
->
tty
=
NULL
;
}
/* called with hp->lock held */
static
void
hvc_push
(
struct
hvc_struct
*
hp
)
{
...
...
@@ -246,6 +254,7 @@ int __init hvc_init(void)
hvc_driver
.
open
=
hvc_open
;
hvc_driver
.
close
=
hvc_close
;
hvc_driver
.
write
=
hvc_write
;
hvc_driver
.
hangup
=
hvc_hangup
;
hvc_driver
.
write_room
=
hvc_write_room
;
hvc_driver
.
chars_in_buffer
=
hvc_chars_in_buffer
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment