mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-23 16:58:33 +03:00
card_emu: Don't de-reference a NULL variable
This commit is contained in:
@@ -171,7 +171,7 @@ static void flush_rx_buffer(struct card_handle *ch)
|
|||||||
ch->uart_rx_ctx = NULL;
|
ch->uart_rx_ctx = NULL;
|
||||||
|
|
||||||
/* store length of data payload fild in header */
|
/* store length of data payload fild in header */
|
||||||
rd = (struct cardemu_usb_msg_rx_data *) ch->uart_rx_ctx->data;
|
rd = (struct cardemu_usb_msg_rx_data *) rctx->data;
|
||||||
rd->hdr.data_len = rctx->idx;
|
rd->hdr.data_len = rctx->idx;
|
||||||
|
|
||||||
llist_add_tail(&rctx->list, &ch->usb_tx_queue);
|
llist_add_tail(&rctx->list, &ch->usb_tx_queue);
|
||||||
|
|||||||
Reference in New Issue
Block a user