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
47076e68
Commit
47076e68
authored
Sep 02, 2002
by
Kai Germaschewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ISDN: cleanups / overflow check
Based on work done by Solar Designer for 2.2
parent
067a4195
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
drivers/isdn/i4l/isdn_ppp.c
drivers/isdn/i4l/isdn_ppp.c
+2
-2
drivers/isdn/pcbit/drv.c
drivers/isdn/pcbit/drv.c
+1
-1
No files found.
drivers/isdn/i4l/isdn_ppp.c
View file @
47076e68
...
...
@@ -706,7 +706,7 @@ isdn_ppp_fill_rq(unsigned char *buf, int len, int proto, int slot)
* reports, that there is data
*/
static
in
t
static
ssize_
t
isdn_ppp_read
(
struct
file
*
file
,
char
*
buf
,
size_t
count
,
loff_t
*
off
)
{
struct
ippp_struct
*
is
;
...
...
@@ -765,7 +765,7 @@ isdn_ppp_read(struct file *file, char *buf, size_t count, loff_t *off)
* ipppd wanna write a packet to the card .. non-blocking
*/
static
in
t
static
ssize_
t
isdn_ppp_write
(
struct
file
*
file
,
const
char
*
buf
,
size_t
count
,
loff_t
*
off
)
{
isdn_net_local
*
lp
;
...
...
drivers/isdn/pcbit/drv.c
View file @
47076e68
...
...
@@ -430,7 +430,7 @@ int pcbit_writecmd(const u_char* buf, int len, int user, int driver, int channel
switch
(
dev
->
l2_state
)
{
case
L2_LWMODE
:
/* check (size <= rdp_size); write buf into board */
if
(
len
>
BANK4
+
1
)
if
(
len
<
0
||
len
>
BANK4
+
1
||
len
>
1024
)
{
printk
(
"pcbit_writecmd: invalid length %d
\n
"
,
len
);
return
-
EINVAL
;
...
...
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