]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drivers/rtc/rtc-pcf50633.c: fix use after free in pcf50633_rtc_probe()
authorDan Carpenter <error27@gmail.com>
Tue, 1 Dec 2009 21:17:41 +0000 (13:17 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
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 <error27@gmail.com>
Acked-by: Alessandro Zummo <a.zummo@towertech.it>
Cc: David Brownell <david-b@pacbell.net>
Cc: Paul Gortmaker <p_gortmaker@yahoo.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-pcf50633.c