commit | 6de65fcfdb51835789b245203d1bfc8d14cb1e06 | [log] [tgz] |
---|---|---|
author | Joeseph Chang <joechang@codeaurora.org> | Mon Mar 27 20:22:09 2017 -0600 |
committer | Corey Minyard <cminyard@mvista.com> | Fri Apr 07 12:25:22 2017 -0500 |
tree | d4c54a5c8abf83d416c72cde8374cc7224897c0c | |
parent | ea6200e84182989a3cce9687cf79a23ac44ec4db [diff] |
ipmi: Fix kernel panic at ipmi_ssif_thread() msg_written_handler() may set ssif_info->multi_data to NULL when using ipmitool to write fru. Before setting ssif_info->multi_data to NULL, add new local pointer "data_to_send" and store correct i2c data pointer to it to fix NULL pointer kernel panic and incorrect ssif_info->multi_pos. Signed-off-by: Joeseph Chang <joechang@codeaurora.org> Signed-off-by: Corey Minyard <cminyard@mvista.com> Cc: stable@vger.kernel.org # 3.19-