@@ -3893,17 +3893,12 @@ static int handle_ipmb_get_msg_cmd(struct ipmi_smi *intf,
3893
3893
dev_dbg (intf -> si_dev , "Invalid command: %*ph\n" ,
3894
3894
msg -> data_size , msg -> data );
3895
3895
3896
- mutex_lock (& ipmi_interfaces_mutex );
3897
- if (!intf -> in_shutdown ) {
3898
- smi_send (intf , intf -> handlers , msg , 0 );
3899
- /*
3900
- * We used the message, so return the value
3901
- * that causes it to not be freed or
3902
- * queued.
3903
- */
3904
- rv = -1 ;
3905
- }
3906
- mutex_unlock (& ipmi_interfaces_mutex );
3896
+ smi_send (intf , intf -> handlers , msg , 0 );
3897
+ /*
3898
+ * We used the message, so return the value that
3899
+ * causes it to not be freed or queued.
3900
+ */
3901
+ rv = -1 ;
3907
3902
} else {
3908
3903
recv_msg = ipmi_alloc_recv_msg ();
3909
3904
if (!recv_msg ) {
@@ -3984,17 +3979,12 @@ static int handle_ipmb_direct_rcv_cmd(struct ipmi_smi *intf,
3984
3979
msg -> data [4 ] = IPMI_INVALID_CMD_COMPLETION_CODE ;
3985
3980
msg -> data_size = 5 ;
3986
3981
3987
- mutex_lock (& ipmi_interfaces_mutex );
3988
- if (!intf -> in_shutdown ) {
3989
- smi_send (intf , intf -> handlers , msg , 0 );
3990
- /*
3991
- * We used the message, so return the value
3992
- * that causes it to not be freed or
3993
- * queued.
3994
- */
3995
- rv = -1 ;
3996
- }
3997
- mutex_unlock (& ipmi_interfaces_mutex );
3982
+ smi_send (intf , intf -> handlers , msg , 0 );
3983
+ /*
3984
+ * We used the message, so return the value that
3985
+ * causes it to not be freed or queued.
3986
+ */
3987
+ rv = -1 ;
3998
3988
} else {
3999
3989
recv_msg = ipmi_alloc_recv_msg ();
4000
3990
if (!recv_msg ) {
0 commit comments