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
674d5a34
Commit
674d5a34
authored
Jun 14, 2002
by
Jean Tourrilhes
Committed by
Linus Torvalds
Jun 14, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IrDA update 2/4:
o [CORRECT] Fix two bugs found by the Stanford checker in IrCOMM
parent
e6499e49
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
net/irda/ircomm/ircomm_core.c
net/irda/ircomm/ircomm_core.c
+1
-1
net/irda/ircomm/ircomm_tty.c
net/irda/ircomm/ircomm_tty.c
+3
-3
No files found.
net/irda/ircomm/ircomm_core.c
View file @
674d5a34
...
...
@@ -514,7 +514,7 @@ int ircomm_proc_read(char *buf, char **start, off_t offset, int len)
self
=
(
struct
ircomm_cb
*
)
hashbin_get_first
(
ircomm
);
while
(
self
!=
NULL
)
{
ASSERT
(
self
->
magic
==
IRCOMM_MAGIC
,
return
len
;);
ASSERT
(
self
->
magic
==
IRCOMM_MAGIC
,
break
;);
if
(
self
->
line
<
0x10
)
len
+=
sprintf
(
buf
+
len
,
"ircomm%d"
,
self
->
line
);
...
...
net/irda/ircomm/ircomm_tty.c
View file @
674d5a34
...
...
@@ -525,6 +525,9 @@ static void ircomm_tty_close(struct tty_struct *tty, struct file *filp)
if
(
!
tty
)
return
;
ASSERT
(
self
!=
NULL
,
return
;);
ASSERT
(
self
->
magic
==
IRCOMM_TTY_MAGIC
,
return
;);
save_flags
(
flags
);
cli
();
...
...
@@ -536,9 +539,6 @@ static void ircomm_tty_close(struct tty_struct *tty, struct file *filp)
return
;
}
ASSERT
(
self
!=
NULL
,
return
;);
ASSERT
(
self
->
magic
==
IRCOMM_TTY_MAGIC
,
return
;);
if
((
tty
->
count
==
1
)
&&
(
self
->
open_count
!=
1
))
{
/*
* Uh, oh. tty->count is 1, which means that the tty
...
...
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