Messages in this thread Patch in this message | | | From | Stoyan Gaydarov <> | Subject | [PATCH 19/25] [sysctl.c] BUG to BUG_ON changes | Date | Tue, 10 Mar 2009 00:10:44 -0500 |
| |
Signed-off-by: Stoyan Gaydarov <stoyboyker@gmail.com> --- kernel/sysctl.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index c5ef44f..ae992c4 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -1513,8 +1513,7 @@ void sysctl_head_put(struct ctl_table_header *head) struct ctl_table_header *sysctl_head_grab(struct ctl_table_header *head) { - if (!head) - BUG(); + BUG_ON(!head); spin_lock(&sysctl_lock); if (!use_table(head)) head = ERR_PTR(-ENOENT); -- 1.6.1.3
| |