commit | 5029271072bf55afa6d836180ee93af09b26ab8b | [log] [tgz] |
---|---|---|
author | Varun Prakash <varun@chelsio.com> | Sun Jul 23 20:01:32 2017 +0530 |
committer | Martin K. Petersen <martin.petersen@oracle.com> | Mon Jul 24 22:16:16 2017 -0400 |
tree | 8595fad2ebf5281937802d19d4ae5fefa8f259b3 | |
parent | 516b7db593f3a541e2e98867575c3c697f41a247 [diff] |
scsi: libcxgbi: add check for valid cxgbi_task_data In error case it is possible that ->cleanup_task() gets called without calling ->alloc_pdu() in this case cxgbi_task_data is not valid, so add a check for for valid cxgbi_task_data in cxgbi_cleanup_task(). Signed-off-by: Varun Prakash <varun@chelsio.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>