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
63a0acfe
Commit
63a0acfe
authored
Sep 08, 2003
by
Andries E. Brouwer
Committed by
Linus Torvalds
Sep 08, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] sparse fix kcore
parent
8ab184ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
fs/proc/kcore.c
fs/proc/kcore.c
+3
-2
No files found.
fs/proc/kcore.c
View file @
63a0acfe
...
@@ -27,7 +27,7 @@ static int open_kcore(struct inode * inode, struct file * filp)
...
@@ -27,7 +27,7 @@ static int open_kcore(struct inode * inode, struct file * filp)
return
capable
(
CAP_SYS_RAWIO
)
?
0
:
-
EPERM
;
return
capable
(
CAP_SYS_RAWIO
)
?
0
:
-
EPERM
;
}
}
static
ssize_t
read_kcore
(
struct
file
*
,
char
*
,
size_t
,
loff_t
*
);
static
ssize_t
read_kcore
(
struct
file
*
,
char
__user
*
,
size_t
,
loff_t
*
);
struct
file_operations
proc_kcore_operations
=
{
struct
file_operations
proc_kcore_operations
=
{
.
read
=
read_kcore
,
.
read
=
read_kcore
,
...
@@ -267,7 +267,8 @@ static void elf_kcore_store_hdr(char *bufp, int nphdr, int dataoff)
...
@@ -267,7 +267,8 @@ static void elf_kcore_store_hdr(char *bufp, int nphdr, int dataoff)
/*
/*
* read from the ELF header and then kernel memory
* read from the ELF header and then kernel memory
*/
*/
static
ssize_t
read_kcore
(
struct
file
*
file
,
char
*
buffer
,
size_t
buflen
,
loff_t
*
fpos
)
static
ssize_t
read_kcore
(
struct
file
*
file
,
char
__user
*
buffer
,
size_t
buflen
,
loff_t
*
fpos
)
{
{
ssize_t
acc
=
0
;
ssize_t
acc
=
0
;
size_t
size
,
tsz
;
size_t
size
,
tsz
;
...
...
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