mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 02:24:24 +02:00
scsi: sg: Fix sysctl sg-big-buff register during sg_init()
Commit26d1c80fd6("scsi/sg: move sg-big-buff sysctl to scsi/sg.c") made a mistake. sysctl sg-big-buff was not created because the call to register_sg_sysctls() was placed on the wrong code path. Fixes:26d1c80fd6("scsi/sg: move sg-big-buff sysctl to scsi/sg.c") Signed-off-by: Yang Erkun <yangerkun@huawei.com> Reviewed-by: Bart Van Assche <bvanassche@acm.org> Link: https://patch.msgid.link/20260127062044.3034148-2-yangerkun@huawei.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
94c125bafa
commit
3033c471aa
|
|
@ -1691,13 +1691,13 @@ init_sg(void)
|
|||
sg_sysfs_valid = 1;
|
||||
rc = scsi_register_interface(&sg_interface);
|
||||
if (0 == rc) {
|
||||
register_sg_sysctls();
|
||||
#ifdef CONFIG_SCSI_PROC_FS
|
||||
sg_proc_init();
|
||||
#endif /* CONFIG_SCSI_PROC_FS */
|
||||
return 0;
|
||||
}
|
||||
class_unregister(&sg_sysfs_class);
|
||||
register_sg_sysctls();
|
||||
err_out:
|
||||
unregister_chrdev_region(MKDEV(SCSI_GENERIC_MAJOR, 0), SG_MAX_DEVS);
|
||||
return rc;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user