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
b658322f
Commit
b658322f
authored
Apr 13, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: kobil_sct fix up errors found by smatch
parent
17487fd1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
drivers/usb/serial/kobil_sct.c
drivers/usb/serial/kobil_sct.c
+6
-2
No files found.
drivers/usb/serial/kobil_sct.c
View file @
b658322f
...
...
@@ -514,7 +514,9 @@ static int kobil_ioctl(struct usb_serial_port *port, struct file *file,
dbg
(
"%s - port %d Error in verify_area"
,
__FUNCTION__
,
port
->
number
);
return
(
result
);
}
kernel_termios_to_user_termios
((
struct
termios
*
)
arg
,
&
priv
->
internal_termios
);
if
(
kernel_termios_to_user_termios
((
struct
termios
*
)
arg
,
&
priv
->
internal_termios
))
return
-
EFAULT
;
return
0
;
case
TCSETS
:
// 0x5402
...
...
@@ -527,7 +529,9 @@ static int kobil_ioctl(struct usb_serial_port *port, struct file *file,
dbg
(
"%s - port %d Error in verify_area"
,
__FUNCTION__
,
port
->
number
);
return
result
;
}
user_termios_to_kernel_termios
(
&
priv
->
internal_termios
,
(
struct
termios
*
)
arg
);
if
(
user_termios_to_kernel_termios
(
&
priv
->
internal_termios
,
(
struct
termios
*
)
arg
))
return
-
EFAULT
;
settings
=
(
unsigned
char
*
)
kmalloc
(
50
,
GFP_KERNEL
);
if
(
!
settings
)
{
...
...
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