We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25c2758 commit 9ad5249Copy full SHA for 9ad5249
drivers/scsi/mpt3sas/mpt3sas_ctl.c
@@ -2869,8 +2869,9 @@ _ctl_get_mpt_mctp_passthru_adapter(int dev_index)
2869
if (ioc->facts.IOCCapabilities & MPI26_IOCFACTS_CAPABILITY_MCTP_PASSTHRU) {
2870
if (count == dev_index) {
2871
spin_unlock(&gioc_lock);
2872
- return 0;
+ return ioc;
2873
}
2874
+ count++;
2875
2876
2877
0 commit comments