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
a9e26cab
Commit
a9e26cab
authored
Jun 01, 2016
by
Rob Clark
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/msm: fix potential submit error path issue
Signed-off-by:
Rob Clark
<
robdclark@gmail.com
>
parent
ba344afd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
drivers/gpu/drm/msm/msm_gem_submit.c
drivers/gpu/drm/msm/msm_gem_submit.c
+5
-0
No files found.
drivers/gpu/drm/msm/msm_gem_submit.c
View file @
a9e26cab
...
@@ -77,6 +77,11 @@ static int submit_lookup_objects(struct msm_gem_submit *submit,
...
@@ -77,6 +77,11 @@ static int submit_lookup_objects(struct msm_gem_submit *submit,
void
__user
*
userptr
=
void
__user
*
userptr
=
u64_to_user_ptr
(
args
->
bos
+
(
i
*
sizeof
(
submit_bo
)));
u64_to_user_ptr
(
args
->
bos
+
(
i
*
sizeof
(
submit_bo
)));
/* make sure we don't have garbage flags, in case we hit
* error path before flags is initialized:
*/
submit
->
bos
[
i
].
flags
=
0
;
ret
=
copy_from_user
(
&
submit_bo
,
userptr
,
sizeof
(
submit_bo
));
ret
=
copy_from_user
(
&
submit_bo
,
userptr
,
sizeof
(
submit_bo
));
if
(
ret
)
{
if
(
ret
)
{
ret
=
-
EFAULT
;
ret
=
-
EFAULT
;
...
...
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