commit | 9281cf2d584083a450fd65fd27cc5f0e692f6e30 | [log] [tgz] |
---|---|---|
author | Dany Madden <drt@linux.ibm.com> | Wed Nov 25 18:04:26 2020 -0600 |
committer | Jakub Kicinski <kuba@kernel.org> | Sat Nov 28 13:26:48 2020 -0800 |
tree | c12f6353d257719c0f7d1881421a54dc06d77e07 | |
parent | 18f141bf97d42f65abfdf17fd93fb3a0dac100e7 [diff] |
ibmvnic: avoid memset null scrq msgs scrq->msgs could be NULL during device reset, causing Linux to crash. So, check before memset scrq->msgs. Fixes: c8b2ad0a4a901 ("ibmvnic: Sanitize entire SCRQ buffer on reset") Signed-off-by: Dany Madden <drt@linux.ibm.com> Signed-off-by: Lijun Pan <ljp@linux.ibm.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>