Browse Source

Staging: rtl8192u/ieee80211: add missing single_release()

The debug file is opened with single_open(), but there's no
single_release().

Signed-off-by: Li Zefan <lizefan@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Li Zefan 12 years ago
parent
commit
e8e6fda00b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      drivers/staging/rtl8192u/ieee80211/ieee80211_module.c

+ 2 - 1
drivers/staging/rtl8192u/ieee80211/ieee80211_module.c

@@ -268,7 +268,8 @@ static const struct file_operations fops = {
 	.open = open_debug_level,
 	.read = seq_read,
 	.llseek = seq_lseek,
-	.write = write_debug_level
+	.write = write_debug_level,
+	.release = single_release,
 };
 
 int __init ieee80211_debug_init(void)