More missed changes, the response back to another system sending a command that had no user to handle it wasn't formatted properly.
Unified · Split
| @@ -3920,9 +3920,11 @@ static int handle_ipmb_direct_rcv_cmd(struct ipmi_smi *intf, · 3919 unmodified lines | |||
| 3920 | /* We didn't find a user, deliver an error response. */ | 3920 | /* We didn't find a user, deliver an error response. */ |
| 3921 | ipmi_inc_stat(intf, unhandled_commands); | 3921 | ipmi_inc_stat(intf, unhandled_commands); |
| 3922 | 3922 | ||
| 3923 | msg->data[0] = ((netfn + 1) << 2) | (msg->rsp[4] & 0x3); | 3923 | msg->data[0] = (netfn + 1) << 2; |
| 3924 | msg->data[1] = msg->rsp[2]; | 3924 | msg->data[0] |= msg->rsp[2] & 0x3; /* rqLUN */ |
| 3925 | msg->data[2] = msg->rsp[4] & ~0x3; | 3925 | msg->data[1] = msg->rsp[1]; /* Addr */ |
| 3926 | msg->data[2] = msg->rsp[2] & ~0x3; /* rqSeq */ | ||
| 3927 | msg->data[2] |= msg->rsp[0] & 0x3; /* rsLUN */ | ||
| 3926 | msg->data[3] = cmd; | 3928 | msg->data[3] = cmd; |
| 3927 | msg->data[4] = IPMI_INVALID_CMD_COMPLETION_CODE; | 3929 | msg->data[4] = IPMI_INVALID_CMD_COMPLETION_CODE; |
| 3928 | msg->data_size = 5; | 3930 | msg->data_size = 5; |