Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
d6053e08
Commit
d6053e08
authored
Nov 24, 2008
by
Stefan Richter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
firewire: fix small memory leak at module removal
Signed-off-by:
Stefan Richter
<
stefanr@s5r6.in-berlin.de
>
parent
621f6dd7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
drivers/firewire/fw-device.c
drivers/firewire/fw-device.c
+1
-1
drivers/firewire/fw-device.h
drivers/firewire/fw-device.h
+2
-0
drivers/firewire/fw-transaction.c
drivers/firewire/fw-transaction.c
+2
-0
No files found.
drivers/firewire/fw-device.c
View file @
d6053e08
...
...
@@ -617,7 +617,7 @@ static int shutdown_unit(struct device *device, void *data)
*/
DECLARE_RWSEM
(
fw_device_rwsem
);
static
DEFINE_IDR
(
fw_device_idr
);
DEFINE_IDR
(
fw_device_idr
);
int
fw_cdev_major
;
struct
fw_device
*
fw_device_get_by_devt
(
dev_t
devt
)
...
...
drivers/firewire/fw-device.h
View file @
d6053e08
...
...
@@ -21,6 +21,7 @@
#include <linux/fs.h>
#include <linux/cdev.h>
#include <linux/idr.h>
#include <linux/rwsem.h>
#include <asm/atomic.h>
...
...
@@ -99,6 +100,7 @@ void fw_device_cdev_update(struct fw_device *device);
void
fw_device_cdev_remove
(
struct
fw_device
*
device
);
extern
struct
rw_semaphore
fw_device_rwsem
;
extern
struct
idr
fw_device_idr
;
extern
int
fw_cdev_major
;
/*
...
...
drivers/firewire/fw-transaction.c
View file @
d6053e08
...
...
@@ -19,6 +19,7 @@
*/
#include <linux/completion.h>
#include <linux/idr.h>
#include <linux/kernel.h>
#include <linux/kref.h>
#include <linux/module.h>
...
...
@@ -971,6 +972,7 @@ static void __exit fw_core_cleanup(void)
{
unregister_chrdev
(
fw_cdev_major
,
"firewire"
);
bus_unregister
(
&
fw_bus_type
);
idr_destroy
(
&
fw_device_idr
);
}
module_init
(
fw_core_init
);
...
...
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