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
20a27827
Commit
20a27827
authored
Sep 26, 2002
by
Linus Torvalds
Committed by
Christoph Hellwig
Sep 26, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid NULL ptr dereference on module names by always
having a valid name (base kernel: "").
parent
218af2f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
kernel/module.c
kernel/module.c
+2
-2
No files found.
kernel/module.c
View file @
20a27827
...
...
@@ -52,7 +52,7 @@ EXPORT_SYMBOL(__stop___kallsyms);
struct
module
kernel_module
=
{
.
size_of_struct
=
sizeof
(
struct
module
),
.
name
=
NULL
,
.
name
=
""
,
.
uc
=
{
ATOMIC_INIT
(
1
)},
.
flags
=
MOD_RUNNING
,
.
syms
=
__start___ksymtab
,
...
...
@@ -1353,7 +1353,7 @@ print_symbol(const char *fmt, unsigned long address)
}
if
(
sym_start
)
{
if
(
mod_name
)
if
(
*
mod_name
)
snprintf
(
buffer
,
MAX_SYMBOL_SIZE
-
1
,
"%s%s+%#x/%#x [%s]"
,
tag
,
sym_name
,
(
unsigned
int
)(
address
-
sym_start
),
...
...
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