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
4825acc7
Commit
4825acc7
authored
May 14, 2003
by
Dave Jones
Committed by
Linus Torvalds
May 14, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] pcwatchdog firmware memory leak
parent
87536156
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
drivers/char/watchdog/pcwd.c
drivers/char/watchdog/pcwd.c
+6
-3
No files found.
drivers/char/watchdog/pcwd.c
View file @
4825acc7
...
@@ -594,6 +594,7 @@ static void __init pcwd_validate_timeout(void)
...
@@ -594,6 +594,7 @@ static void __init pcwd_validate_timeout(void)
static
int
__init
pcwatchdog_init
(
void
)
static
int
__init
pcwatchdog_init
(
void
)
{
{
char
*
firmware
;
int
i
,
found
=
0
;
int
i
,
found
=
0
;
pcwd_validate_timeout
();
pcwd_validate_timeout
();
spin_lock_init
(
&
io_lock
);
spin_lock_init
(
&
io_lock
);
...
@@ -633,10 +634,12 @@ static int __init pcwatchdog_init(void)
...
@@ -633,10 +634,12 @@ static int __init pcwatchdog_init(void)
if
(
revision
==
PCWD_REVISION_A
)
if
(
revision
==
PCWD_REVISION_A
)
printk
(
KERN_INFO
"pcwd: PC Watchdog (REV.A) detected at port 0x%03x
\n
"
,
current_readport
);
printk
(
KERN_INFO
"pcwd: PC Watchdog (REV.A) detected at port 0x%03x
\n
"
,
current_readport
);
else
if
(
revision
==
PCWD_REVISION_C
)
else
if
(
revision
==
PCWD_REVISION_C
)
{
firmware
=
get_firmware
();
printk
(
KERN_INFO
"pcwd: PC Watchdog (REV.C) detected at port 0x%03x (Firmware version: %s)
\n
"
,
printk
(
KERN_INFO
"pcwd: PC Watchdog (REV.C) detected at port 0x%03x (Firmware version: %s)
\n
"
,
current_readport
,
get_firmware
());
current_readport
,
firmware
);
else
{
kfree
(
firmware
);
}
else
{
/* Should NEVER happen, unless get_revision() fails. */
/* Should NEVER happen, unless get_revision() fails. */
printk
(
"pcwd: Unable to get revision.
\n
"
);
printk
(
"pcwd: Unable to get revision.
\n
"
);
return
-
1
;
return
-
1
;
...
...
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