rtc/mc13783: fix use after free bug
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 23 Mar 2010 20:35:13 +0000 (13:35 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 24 Mar 2010 23:31:19 +0000 (16:31 -0700)
commit05731b979476969d4d1cbbcb535fc0f5ea90dba7
treecc6c33e59c765dac9af39c8caa4a97f8da8f1861
parente7bbcdf3747e3919c31cfa87853c69d178bce548
rtc/mc13783: fix use after free bug

This was introduced by v2.6.34-rc1~38:

4c014e8 (rtc/mc13783: protect rtc {,un}registration by mc13783 lock)

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-mc13783.c