]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
wireless: single_open() leaks
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 5 May 2013 04:13:20 +0000 (00:13 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 5 May 2013 04:13:20 +0000 (00:13 -0400)
Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/net/wireless/atmel.c
drivers/net/wireless/hostap/hostap_ap.c
drivers/net/wireless/hostap/hostap_hw.c
drivers/net/wireless/hostap/hostap_proc.c

index 23a3498f14d4a60d81f6e8cc4cfd4472d3f5baf2..830bb1d1f9574a12a3a02536b9485632ebf2dff9 100644 (file)
@@ -1502,7 +1502,7 @@ static const struct file_operations atmel_proc_fops = {
        .open           = atmel_proc_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
-       .release        = seq_release,
+       .release        = single_release,
 };
 
 static const struct net_device_ops atmel_netdev_ops = {
index 19c45e363aa7bba64a6ad35163c762b18a73e7c8..d6033a8e5deaf16319d6ab6688b99544dc1f1a0c 100644 (file)
@@ -89,7 +89,7 @@ static const struct file_operations ap_debug_proc_fops = {
        .open           = ap_debug_proc_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
-       .release        = seq_release,
+       .release        = single_release,
 };
 #endif /* PRISM2_NO_PROCFS_DEBUG */
 
@@ -1116,7 +1116,7 @@ static const struct file_operations prism2_sta_proc_fops = {
        .open           = prism2_sta_proc_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
-       .release        = seq_release,
+       .release        = single_release,
 };
 
 static void handle_add_proc_queue(struct work_struct *work)
index 507ab99eef4e86a241996ae546810093f7a7b0ae..6307a4e36c850c972e84974243f7f65de21724ee 100644 (file)
@@ -2957,7 +2957,7 @@ static const struct file_operations prism2_registers_proc_fops = {
        .open           = prism2_registers_proc_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
-       .release        = seq_release,
+       .release        = single_release,
 };
 
 #endif /* PRISM2_NO_PROCFS_DEBUG */
index 7491dab2c105a26d93317b98539388f59a5a663d..aa7ad3a7a69b058e2e2d148279d3f9c0cc6b2afe 100644 (file)
@@ -52,7 +52,7 @@ static const struct file_operations prism2_debug_proc_fops = {
        .open           = prism2_debug_proc_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
-       .release        = seq_release,
+       .release        = single_release,
 };
 #endif /* PRISM2_NO_PROCFS_DEBUG */
 
@@ -103,7 +103,7 @@ static const struct file_operations prism2_stats_proc_fops = {
        .open           = prism2_stats_proc_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
-       .release        = seq_release,
+       .release        = single_release,
 };
 
 
@@ -265,7 +265,7 @@ static const struct file_operations prism2_crypt_proc_fops = {
        .open           = prism2_crypt_proc_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
-       .release        = seq_release,
+       .release        = single_release,
 };