aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/proc_sysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/proc/proc_sysctl.c')
-rw-r--r--fs/proc/proc_sysctl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c
index eb7cc91b7258..dcd56f84db7e 100644
--- a/fs/proc/proc_sysctl.c
+++ b/fs/proc/proc_sysctl.c
@@ -266,8 +266,7 @@ void sysctl_head_put(struct ctl_table_header *head)
266 266
267static struct ctl_table_header *sysctl_head_grab(struct ctl_table_header *head) 267static struct ctl_table_header *sysctl_head_grab(struct ctl_table_header *head)
268{ 268{
269 if (!head) 269 BUG_ON(!head);
270 BUG();
271 spin_lock(&sysctl_lock); 270 spin_lock(&sysctl_lock);
272 if (!use_table(head)) 271 if (!use_table(head))
273 head = ERR_PTR(-ENOENT); 272 head = ERR_PTR(-ENOENT);