drivers/rtc/rtc-pcf50633.c: fix use after free in pcf50633_rtc_probe()
authorDan Carpenter <[email protected]>
Tue, 1 Dec 2009 21:17:41 +0000 (13:17 -0800)
committerLinus Torvalds <[email protected]>
Wed, 2 Dec 2009 00:32:19 +0000 (16:32 -0800)
commitfa00e106eb6f082654d822a0946c0c86297ede2c
treef176cc90a568182419de69c555c25f9c2459a188
parent4c4cb1b1605e50983afd7924980c9434b214599f
drivers/rtc/rtc-pcf50633.c: fix use after free in pcf50633_rtc_probe()

"rtc" is freed and then dereferenced on the next line.  This patch fixes
that.

Signed-off-by: Dan Carpenter <[email protected]>
Acked-by: Alessandro Zummo <[email protected]>
Cc: David Brownell <[email protected]>
Cc: Paul Gortmaker <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/rtc/rtc-pcf50633.c