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 1b6b698 commit a5f2b3dCopy full SHA for a5f2b3d
drivers/char/ipmi/ipmi_bt_sm.c
@@ -95,9 +95,9 @@ struct si_sm_data {
95
enum bt_states state;
96
unsigned char seq; /* BT sequence number */
97
struct si_sm_io *io;
98
- unsigned char write_data[IPMI_MAX_MSG_LENGTH];
+ unsigned char write_data[IPMI_MAX_MSG_LENGTH + 2]; /* +2 for memcpy */
99
int write_count;
100
- unsigned char read_data[IPMI_MAX_MSG_LENGTH];
+ unsigned char read_data[IPMI_MAX_MSG_LENGTH + 2]; /* +2 for memcpy */
101
int read_count;
102
int truncated;
103
long timeout; /* microseconds countdown */
0 commit comments