[PATCH] rtc: fix idr locking
authorSonny Rao <sonny@burdell.org>
Tue, 27 Jun 2006 09:54:06 +0000 (02:54 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 28 Jun 2006 00:32:40 +0000 (17:32 -0700)
commit6ac12dfe9c2027cd3c5ed603f11d1bb4f04906fe
tree7c1cb6d405dcaf959d9b1f67f62991775722fcde
parentb65b5b59f98aa317df399318b0b2770f50732d3c
[PATCH] rtc: fix idr locking

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