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
01351eb2
Commit
01351eb2
authored
Oct 01, 2015
by
Rafael J. Wysocki
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'acpi-ec'
* acpi-ec: ACPI / EC: Fix a memory leak issue in acpi_ec_query()
parents
dd953d31
15b94fa3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
drivers/acpi/ec.c
drivers/acpi/ec.c
+2
-0
No files found.
drivers/acpi/ec.c
View file @
01351eb2
...
@@ -1044,8 +1044,10 @@ static int acpi_ec_query(struct acpi_ec *ec, u8 *data)
...
@@ -1044,8 +1044,10 @@ static int acpi_ec_query(struct acpi_ec *ec, u8 *data)
goto
err_exit
;
goto
err_exit
;
mutex_lock
(
&
ec
->
mutex
);
mutex_lock
(
&
ec
->
mutex
);
result
=
-
ENODATA
;
list_for_each_entry
(
handler
,
&
ec
->
list
,
node
)
{
list_for_each_entry
(
handler
,
&
ec
->
list
,
node
)
{
if
(
value
==
handler
->
query_bit
)
{
if
(
value
==
handler
->
query_bit
)
{
result
=
0
;
q
->
handler
=
acpi_ec_get_query_handler
(
handler
);
q
->
handler
=
acpi_ec_get_query_handler
(
handler
);
ec_dbg_evt
(
"Query(0x%02x) scheduled"
,
ec_dbg_evt
(
"Query(0x%02x) scheduled"
,
q
->
handler
->
query_bit
);
q
->
handler
->
query_bit
);
...
...
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