projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b50fa7c
)
RAW driver: Remove call to kobject_put().
author
Robert P. J. Day
<rpjday@crashcourse.ca>
Wed, 4 May 2011 09:19:34 +0000
(
05:19
-0400)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Sat, 7 May 2011 00:52:32 +0000
(17:52 -0700)
If cdev_add() fails, there is no justification for subsequently
calling kobject_put().
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/raw.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/char/raw.c
b/drivers/char/raw.c
index 6f9db621155aae89de657dc597db67ab78190508..b33e8ea314ed0182e746d547e020933e053e5b03 100644
(file)
--- a/
drivers/char/raw.c
+++ b/
drivers/char/raw.c
@@
-339,7
+339,6
@@
static int __init raw_init(void)
cdev_init(&raw_cdev, &raw_fops);
ret = cdev_add(&raw_cdev, dev, max_raw_minors);
if (ret) {
- kobject_put(&raw_cdev.kobj);
goto error_region;
}