|
@@ -402,7 +402,7 @@ void qcedev_cipher_req_cb(void *cookie, unsigned char *icv,
|
|
|
return;
|
|
|
qcedev_areq = podev->active_command;
|
|
|
|
|
|
- if (iv)
|
|
|
+ if (iv && qcedev_areq)
|
|
|
memcpy(&qcedev_areq->cipher_op_req.iv[0], iv,
|
|
|
qcedev_areq->cipher_op_req.ivlen);
|
|
|
tasklet_schedule(&podev->done_tasklet);
|
|
@@ -530,7 +530,7 @@ void qcedev_offload_cipher_req_cb(void *cookie, unsigned char *icv,
|
|
|
return;
|
|
|
qcedev_areq = podev->active_command;
|
|
|
|
|
|
- if (iv)
|
|
|
+ if (iv && qcedev_areq)
|
|
|
memcpy(&qcedev_areq->offload_cipher_op_req.iv[0], iv,
|
|
|
qcedev_areq->offload_cipher_op_req.ivlen);
|
|
|
|