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
17487fd1
Commit
17487fd1
authored
Apr 13, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: kl5kusb105 fix up errors found by smatch
parent
ee2892c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
drivers/usb/serial/kl5kusb105.c
drivers/usb/serial/kl5kusb105.c
+6
-4
No files found.
drivers/usb/serial/kl5kusb105.c
View file @
17487fd1
...
...
@@ -964,8 +964,9 @@ static int klsi_105_ioctl (struct usb_serial_port *port, struct file * file,
if
(
retval
)
return
(
retval
);
kernel_termios_to_user_termios
((
struct
termios
*
)
arg
,
&
priv
->
termios
);
if
(
kernel_termios_to_user_termios
((
struct
termios
*
)
arg
,
&
priv
->
termios
))
return
-
EFAULT
;
return
(
0
);
}
case
TCSETS
:
{
...
...
@@ -980,8 +981,9 @@ static int klsi_105_ioctl (struct usb_serial_port *port, struct file * file,
if
(
retval
)
return
(
retval
);
user_termios_to_kernel_termios
(
&
priv
->
termios
,
(
struct
termios
*
)
arg
);
if
(
user_termios_to_kernel_termios
(
&
priv
->
termios
,
(
struct
termios
*
)
arg
))
return
-
EFAULT
;
klsi_105_set_termios
(
port
,
&
priv
->
termios
);
return
(
0
);
}
...
...
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