commit | d3c4dd4e3dc52a7a8ae4cfd91fedffdeeb6e003b | [log] [tgz] |
---|---|---|
author | John Garry <john.garry@huawei.com> | Mon Apr 10 21:22:00 2017 +0800 |
committer | Martin K. Petersen <martin.petersen@oracle.com> | Tue Apr 11 22:01:04 2017 -0400 |
tree | 29280b85bd5bc883a212d9936289612dd059f12b | |
parent | 0844a3ff00e30cf7e8edbce40eab83593c051c78 [diff] |
scsi: hisi_sas: fix NULL deference when TMF timeouts If a TMF timeouts (maybe due to unlikely scenario of an expander being unplugged when TMF for remote device is active), when we eventually try to free the slot, we crash as we dereference the slot's task, which has already been released. As a fix, add checks in the slot release code for a NULL task. Signed-off-by: John Garry <john.garry@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>