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
598caf1a
Commit
598caf1a
authored
Apr 23, 2020
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i915: alloc_oa_regs(): get rid of pointless access_ok()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
fd7cd8da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
drivers/gpu/drm/i915/i915_perf.c
drivers/gpu/drm/i915/i915_perf.c
+0
-3
No files found.
drivers/gpu/drm/i915/i915_perf.c
View file @
598caf1a
...
...
@@ -3949,9 +3949,6 @@ static struct i915_oa_reg *alloc_oa_regs(struct i915_perf *perf,
if
(
!
n_regs
)
return
NULL
;
if
(
!
access_ok
(
regs
,
n_regs
*
sizeof
(
u32
)
*
2
))
return
ERR_PTR
(
-
EFAULT
);
/* No is_valid function means we're not allowing any register to be programmed. */
GEM_BUG_ON
(
!
is_valid
);
if
(
!
is_valid
)
...
...
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