drm/tests: hdmi: Fix memory leaks in drm_display_mode_from_cea_vic()
[drm/drm-misc.git] / drivers / scsi / scsi_sysctl.c
blob093774d77534659596060d5a4e94c33edb271c9e
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3 * Copyright (C) 2003 Christoph Hellwig.
4 */
6 #include <linux/errno.h>
7 #include <linux/init.h>
8 #include <linux/kernel.h>
9 #include <linux/sysctl.h>
11 #include "scsi_logging.h"
12 #include "scsi_priv.h"
15 static struct ctl_table scsi_table[] = {
16 { .procname = "logging_level",
17 .data = &scsi_logging_level,
18 .maxlen = sizeof(scsi_logging_level),
19 .mode = 0644,
20 .proc_handler = proc_dointvec },
23 static struct ctl_table_header *scsi_table_header;
25 int __init scsi_init_sysctl(void)
27 scsi_table_header = register_sysctl("dev/scsi", scsi_table);
28 if (!scsi_table_header)
29 return -ENOMEM;
30 return 0;
33 void scsi_exit_sysctl(void)
35 unregister_sysctl_table(scsi_table_header);