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
5ceff51f
Commit
5ceff51f
authored
May 15, 2013
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
svec-drv.c: zero map on error, or next time would EPERM
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
b0001d0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
svec-drv.c
kernel/svec-drv.c
+1
-0
No files found.
kernel/svec-drv.c
View file @
5ceff51f
...
@@ -87,6 +87,7 @@ int svec_map_window(struct svec_dev *svec, enum svec_map_win map_type)
...
@@ -87,6 +87,7 @@ int svec_map_window(struct svec_dev *svec, enum svec_map_win map_type)
dev_err
(
dev
,
"Failed to map window %d: (%d)
\n
"
,
dev_err
(
dev
,
"Failed to map window %d: (%d)
\n
"
,
(
int
)
map_type
,
rval
);
(
int
)
map_type
,
rval
);
kfree
(
svec
->
map
[
map_type
]);
kfree
(
svec
->
map
[
map_type
]);
svec
->
map
[
map_type
]
=
NULL
;
return
-
EINVAL
;
return
-
EINVAL
;
}
}
...
...
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