Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit acf300dd authored by Al Viro's avatar Al Viro
Browse files

mips: single_open() leaks



Cc: stable@vger.kernel.org
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 75401461
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -61,7 +61,7 @@ static const struct file_operations smtc_proc_fops = {
	.open		= smtc_proc_open,
	.open		= smtc_proc_open,
	.read		= seq_read,
	.read		= seq_read,
	.llseek		= seq_lseek,
	.llseek		= seq_lseek,
	.release	= seq_release,
	.release	= single_release,
};
};


void init_smtc_stats(void)
void init_smtc_stats(void)
+2 −2
Original line number Original line Diff line number Diff line
@@ -92,7 +92,7 @@ static const struct file_operations msp_pci_rd_cnt_fops = {
	.open		= msp_pci_rd_cnt_open,
	.open		= msp_pci_rd_cnt_open,
	.read		= seq_read,
	.read		= seq_read,
	.llseek		= seq_lseek,
	.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,
	.open		= gen_pci_cfg_wr_open,
	.read		= seq_read,
	.read		= seq_read,
	.llseek		= seq_lseek,
	.llseek		= seq_lseek,
	.release	= seq_release,
	.release	= single_release,
};
};


/*****************************************************************************
/*****************************************************************************
+1 −1
Original line number Original line Diff line number Diff line
@@ -145,7 +145,7 @@ static const struct file_operations bw_proc_fops = {
	.open		= bw_proc_open,
	.open		= bw_proc_open,
	.read		= seq_read,
	.read		= seq_read,
	.llseek		= seq_lseek,
	.llseek		= seq_lseek,
	.release	= seq_release,
	.release	= single_release,
};
};


static void create_proc_decoder(struct bw_stats_struct *stats)
static void create_proc_decoder(struct bw_stats_struct *stats)