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
Kirill Smelkov
linux
Commits
0b4e162c
Commit
0b4e162c
authored
May 10, 2004
by
Andrew Morton
Committed by
Linus Torvalds
May 10, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] fixup 68360 module refcounting
From: Christoph Hellwig <hch@lst.de>
parent
43653667
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
drivers/serial/68360serial.c
drivers/serial/68360serial.c
+1
-5
No files found.
drivers/serial/68360serial.c
View file @
0b4e162c
...
...
@@ -1650,7 +1650,6 @@ static void rs_360_close(struct tty_struct *tty, struct file * filp)
if
(
tty_hung_up_p
(
filp
))
{
DBG_CNT
(
"before DEC-hung"
);
MOD_DEC_USE_COUNT
;
local_irq_restore
(
flags
);
return
;
}
...
...
@@ -1677,7 +1676,6 @@ static void rs_360_close(struct tty_struct *tty, struct file * filp)
}
if
(
state
->
count
)
{
DBG_CNT
(
"before DEC-2"
);
MOD_DEC_USE_COUNT
;
local_irq_restore
(
flags
);
return
;
}
...
...
@@ -1732,7 +1730,6 @@ static void rs_360_close(struct tty_struct *tty, struct file * filp)
}
info
->
flags
&=
~
(
ASYNC_NORMAL_ACTIVE
|
ASYNC_CLOSING
);
wake_up_interruptible
(
&
info
->
close_wait
);
MOD_DEC_USE_COUNT
;
local_irq_restore
(
flags
);
}
...
...
@@ -1993,14 +1990,12 @@ static int rs_360_open(struct tty_struct *tty, struct file * filp)
if
(
retval
)
return
retval
;
MOD_INC_USE_COUNT
;
retval
=
block_til_ready
(
tty
,
filp
,
info
);
if
(
retval
)
{
#ifdef SERIAL_DEBUG_OPEN
printk
(
"rs_open returning after block_til_ready with %d
\n
"
,
retval
);
#endif
MOD_DEC_USE_COUNT
;
return
retval
;
}
...
...
@@ -2476,6 +2471,7 @@ long console_360_init(long kmem_start, long kmem_end)
static
int
baud_idx
;
static
struct
tty_operations
rs_360_ops
=
{
.
owner
=
THIS_MODULE
,
.
open
=
rs_360_open
,
.
close
=
rs_360_close
,
.
write
=
rs_360_write
,
...
...
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