diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-05-05 00:12:29 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-05-05 00:12:29 -0400 |
commit | 2e7718cf7f4111a67f7e74cb66d151345516e37e (patch) | |
tree | d9b099a99dedc3a6894f725f0162b8c17ac460f7 /drivers/char | |
parent | 7485e16c52c269a1676c017c3e6cd84484037977 (diff) |
rtc: single_open() leaks
Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/efirtc.c | 2 | ||||
-rw-r--r-- | drivers/char/genrtc.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/efirtc.c b/drivers/char/efirtc.c index ea54a6e3f5ad..e39e7402e623 100644 --- a/drivers/char/efirtc.c +++ b/drivers/char/efirtc.c | |||
@@ -369,7 +369,7 @@ static const struct file_operations efi_rtc_proc_fops = { | |||
369 | .open = efi_rtc_proc_open, | 369 | .open = efi_rtc_proc_open, |
370 | .read = seq_read, | 370 | .read = seq_read, |
371 | .llseek = seq_lseek, | 371 | .llseek = seq_lseek, |
372 | .release = seq_release, | 372 | .release = single_release, |
373 | }; | 373 | }; |
374 | 374 | ||
375 | static int __init | 375 | static int __init |
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 = { | |||
465 | .open = gen_rtc_proc_open, | 465 | .open = gen_rtc_proc_open, |
466 | .read = seq_read, | 466 | .read = seq_read, |
467 | .llseek = seq_lseek, | 467 | .llseek = seq_lseek, |
468 | .release = seq_release, | 468 | .release = single_release, |
469 | }; | 469 | }; |
470 | 470 | ||
471 | static int __init gen_rtc_proc_init(void) | 471 | static int __init gen_rtc_proc_init(void) |