mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-17 05:38: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;
|
||||
|
||||
/* 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;
|
||||
|
||||
llist_add_tail(&rctx->list, &ch->usb_tx_queue);
|
||||
|
||||
Reference in New Issue
Block a user