mips: single_open() leaks
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 5 May 2013 04:09:30 +0000 (00:09 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 5 May 2013 04:10:21 +0000 (00:10 -0400)
Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/mips/kernel/smtc-proc.c
arch/mips/pci/ops-pmcmsp.c
arch/mips/sibyte/sb1250/bus_watcher.c

index 9fb714450e95162b1a003a74cc705b1c70864ec7..c10aa84c9fa9d4d4d66cc6005ee8c82b7bce495e 100644 (file)
@@ -61,7 +61,7 @@ static const struct file_operations smtc_proc_fops = {
        .open           = smtc_proc_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
-       .release        = seq_release,
+       .release        = single_release,
 };
 
 void init_smtc_stats(void)
index 4eaab6327369c362537c35099496a3d586dccfa0..3d27800edba2e638c9f5d51d45003b2037192455 100644 (file)
@@ -92,7 +92,7 @@ static const struct file_operations msp_pci_rd_cnt_fops = {
        .open           = msp_pci_rd_cnt_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
-       .release        = seq_release,
+       .release        = single_release,
 };
 
 /*****************************************************************************
@@ -169,7 +169,7 @@ static const struct file_operations gen_pci_cfg_wr_fops = {
        .open           = gen_pci_cfg_wr_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
-       .release        = seq_release,
+       .release        = single_release,
 };
 
 /*****************************************************************************
index cb1e3cb37d703da3b06ebba3c7cc8da7fd035742..8871e3345bffa9b2a94a2574090ecbd1658bc6a5 100644 (file)
@@ -145,7 +145,7 @@ static const struct file_operations bw_proc_fops = {
        .open           = bw_proc_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
-       .release        = seq_release,
+       .release        = single_release,
 };
 
 static void create_proc_decoder(struct bw_stats_struct *stats)