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
ca323f21
Commit
ca323f21
authored
Feb 07, 2005
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix ATM copy-to-user usage.
More of the Guninski "copy_to_user() takes a size_t" series.
parent
1a70252c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
net/atm/addr.c
net/atm/addr.c
+1
-1
net/atm/addr.h
net/atm/addr.h
+1
-1
No files found.
net/atm/addr.c
View file @
ca323f21
...
@@ -108,7 +108,7 @@ int atm_del_addr(struct atm_dev *dev, struct sockaddr_atmsvc *addr)
...
@@ -108,7 +108,7 @@ int atm_del_addr(struct atm_dev *dev, struct sockaddr_atmsvc *addr)
}
}
int
atm_get_addr
(
struct
atm_dev
*
dev
,
struct
sockaddr_atmsvc
__user
*
buf
,
int
atm_get_addr
(
struct
atm_dev
*
dev
,
struct
sockaddr_atmsvc
__user
*
buf
,
in
t
size
)
size_
t
size
)
{
{
unsigned
long
flags
;
unsigned
long
flags
;
struct
atm_dev_addr
*
this
;
struct
atm_dev_addr
*
this
;
...
...
net/atm/addr.h
View file @
ca323f21
...
@@ -13,6 +13,6 @@
...
@@ -13,6 +13,6 @@
void
atm_reset_addr
(
struct
atm_dev
*
dev
);
void
atm_reset_addr
(
struct
atm_dev
*
dev
);
int
atm_add_addr
(
struct
atm_dev
*
dev
,
struct
sockaddr_atmsvc
*
addr
);
int
atm_add_addr
(
struct
atm_dev
*
dev
,
struct
sockaddr_atmsvc
*
addr
);
int
atm_del_addr
(
struct
atm_dev
*
dev
,
struct
sockaddr_atmsvc
*
addr
);
int
atm_del_addr
(
struct
atm_dev
*
dev
,
struct
sockaddr_atmsvc
*
addr
);
int
atm_get_addr
(
struct
atm_dev
*
dev
,
struct
sockaddr_atmsvc
__user
*
buf
,
in
t
size
);
int
atm_get_addr
(
struct
atm_dev
*
dev
,
struct
sockaddr_atmsvc
__user
*
buf
,
size_
t
size
);
#endif
#endif
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