projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b65b5b5
)
[PATCH] rtc: fix idr locking
author
Sonny Rao
<sonny@burdell.org>
Tue, 27 Jun 2006 09:54:06 +0000
(
02:54
-0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Wed, 28 Jun 2006 00:32:40 +0000
(17:32 -0700)
We need to serialize access to the global rtc_idr even in this error path.
Signed-off-by: Sonny Rao <sonny@burdell.org>
Acked-by: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/rtc/class.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/rtc/class.c
b/drivers/rtc/class.c
index 5396beec30d0ca62b3d97a0c73c0ac66cb8ceccc..1cb61a761cb284cc6dd590e6ebd8062f6271d246 100644
(file)
--- a/
drivers/rtc/class.c
+++ b/
drivers/rtc/class.c
@@
-94,7
+94,9
@@
exit_kfree:
kfree(rtc);
exit_idr:
+ mutex_lock(&idr_lock);
idr_remove(&rtc_idr, id);
+ mutex_unlock(&idr_lock);
exit:
dev_err(dev, "rtc core: unable to register %s, err = %d\n",