|
@@ -169,7 +169,8 @@ static void handle_vq(struct c2_dev *c2dev, u32 mq_index)
|
|
* We should never get here, as the adapter should
|
|
* We should never get here, as the adapter should
|
|
* never send us a reply that we're not expecting.
|
|
* never send us a reply that we're not expecting.
|
|
*/
|
|
*/
|
|
- vq_repbuf_free(c2dev, host_msg);
|
|
|
|
|
|
+ if (reply_msg != NULL)
|
|
|
|
+ vq_repbuf_free(c2dev, host_msg);
|
|
pr_debug("handle_vq: UNEXPECTEDLY got NULL req\n");
|
|
pr_debug("handle_vq: UNEXPECTEDLY got NULL req\n");
|
|
return;
|
|
return;
|
|
}
|
|
}
|