From 2e7718cf7f4111a67f7e74cb66d151345516e37e Mon Sep 17 00:00:00 2001 From: Al Viro Date: Sun, 5 May 2013 00:12:29 -0400 Subject: rtc: single_open() leaks Cc: stable@vger.kernel.org Signed-off-by: Al Viro --- drivers/char/genrtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/char/genrtc.c') diff --git a/drivers/char/genrtc.c b/drivers/char/genrtc.c index bc9b84d56ee4..4f943759d376 100644 --- a/drivers/char/genrtc.c +++ b/drivers/char/genrtc.c @@ -465,7 +465,7 @@ static const struct file_operations gen_rtc_proc_fops = { .open = gen_rtc_proc_open, .read = seq_read, .llseek = seq_lseek, - .release = seq_release, + .release = single_release, }; static int __init gen_rtc_proc_init(void) -- cgit v1.2.3