Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

scsi: sg: Fix sysctl sg-big-buff register during sg_init()

Commit 26d1c80fd61e ("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: 26d1c80fd61e ("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>

authored by

Yang Erkun and committed by
Martin K. Petersen
3033c471 94c125ba

+1 -1
+1 -1
drivers/scsi/sg.c
··· 1691 1691 sg_sysfs_valid = 1; 1692 1692 rc = scsi_register_interface(&sg_interface); 1693 1693 if (0 == rc) { 1694 + register_sg_sysctls(); 1694 1695 #ifdef CONFIG_SCSI_PROC_FS 1695 1696 sg_proc_init(); 1696 1697 #endif /* CONFIG_SCSI_PROC_FS */ 1697 1698 return 0; 1698 1699 } 1699 1700 class_unregister(&sg_sysfs_class); 1700 - register_sg_sysctls(); 1701 1701 err_out: 1702 1702 unregister_chrdev_region(MKDEV(SCSI_GENERIC_MAJOR, 0), SG_MAX_DEVS); 1703 1703 return rc;