Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple VME FMC Carrier SVEC - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Simple VME FMC Carrier SVEC - Software
Commits
ae7f5ac2
Commit
ae7f5ac2
authored
Mar 04, 2014
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel/svec-sysfs.c: fix validation of vme_addr
Conflicts: kernel/svec-sysfs.c
parent
ed8bfdca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
svec-sysfs.c
kernel/svec-sysfs.c
+2
-1
No files found.
kernel/svec-sysfs.c
View file @
ae7f5ac2
...
...
@@ -205,13 +205,14 @@ ATTR_STORE_CALLBACK(vme_addr)
if
(
sscanf
(
buf
,
"%i"
,
&
addr
)
!=
1
)
return
-
EINVAL
;
if
(
addr
>=
card
->
cfg_cur
.
vme_size
)
if
(
addr
>=
card
->
cfg_cur
.
vme_
base
+
card
->
cfg_cur
.
vme_
size
)
return
-
EINVAL
;
if
(
addr
&
3
)
return
-
EINVAL
;
card
->
vme_raw_addr
=
addr
;
return
count
;
}
...
...
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