File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -3738,7 +3738,13 @@ void ipmi_unregister_smi(struct ipmi_smi *intf)
3738
3738
list_del (& intf -> link );
3739
3739
mutex_unlock (& ipmi_interfaces_mutex );
3740
3740
3741
- /* At this point no users can be added to the interface. */
3741
+ /*
3742
+ * At this point no users can be added to the interface and no
3743
+ * new messages can be sent.
3744
+ */
3745
+
3746
+ if (intf -> handlers -> shutdown )
3747
+ intf -> handlers -> shutdown (intf -> send_info );
3742
3748
3743
3749
device_remove_file (intf -> si_dev , & intf -> nr_msgs_devattr );
3744
3750
device_remove_file (intf -> si_dev , & intf -> nr_users_devattr );
@@ -3761,9 +3767,6 @@ void ipmi_unregister_smi(struct ipmi_smi *intf)
3761
3767
}
3762
3768
mutex_unlock (& intf -> users_mutex );
3763
3769
3764
- if (intf -> handlers -> shutdown )
3765
- intf -> handlers -> shutdown (intf -> send_info );
3766
-
3767
3770
cleanup_smi_msgs (intf );
3768
3771
3769
3772
ipmi_bmc_unregister (intf );
You can’t perform that action at this time.
0 commit comments