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
a5d62a14
Commit
a5d62a14
authored
Dec 10, 2010
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
isdn: Fix printed out copy_from_user() return value after previous change.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
f073c7ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
drivers/isdn/hisax/isar.c
drivers/isdn/hisax/isar.c
+4
-3
No files found.
drivers/isdn/hisax/isar.c
View file @
a5d62a14
...
@@ -189,7 +189,7 @@ ISARVersion(struct IsdnCardState *cs, char *s)
...
@@ -189,7 +189,7 @@ ISARVersion(struct IsdnCardState *cs, char *s)
static
int
static
int
isar_load_firmware
(
struct
IsdnCardState
*
cs
,
u_char
__user
*
buf
)
isar_load_firmware
(
struct
IsdnCardState
*
cs
,
u_char
__user
*
buf
)
{
{
int
ret
,
size
,
cnt
,
debug
;
int
cfu_ret
,
ret
,
size
,
cnt
,
debug
;
u_char
len
,
nom
,
noc
;
u_char
len
,
nom
,
noc
;
u_short
sadr
,
left
,
*
sp
;
u_short
sadr
,
left
,
*
sp
;
u_char
__user
*
p
=
buf
;
u_char
__user
*
p
=
buf
;
...
@@ -212,8 +212,9 @@ isar_load_firmware(struct IsdnCardState *cs, u_char __user *buf)
...
@@ -212,8 +212,9 @@ isar_load_firmware(struct IsdnCardState *cs, u_char __user *buf)
cs
->
debug
&=
~
(
L1_DEB_HSCX
|
L1_DEB_HSCX_FIFO
);
cs
->
debug
&=
~
(
L1_DEB_HSCX
|
L1_DEB_HSCX_FIFO
);
#endif
#endif
if
(
copy_from_user
(
&
size
,
p
,
sizeof
(
int
)))
{
cfu_ret
=
copy_from_user
(
&
size
,
p
,
sizeof
(
int
));
printk
(
KERN_ERR
"isar_load_firmware copy_from_user ret %d
\n
"
,
ret
);
if
(
cfu_ret
)
{
printk
(
KERN_ERR
"isar_load_firmware copy_from_user ret %d
\n
"
,
cfu_ret
);
return
-
EFAULT
;
return
-
EFAULT
;
}
}
p
+=
sizeof
(
int
);
p
+=
sizeof
(
int
);
...
...
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