3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 14:49:24 +01:00

hwsim: Don't crash if source radio not found

We already print an error when this happens, no need to crash.
This commit is contained in:
Andrew Zaborowski 2018-05-22 14:10:06 +02:00 committed by Denis Kenzior
parent e6adb36621
commit 676a1f48c3

View File

@ -1171,7 +1171,8 @@ static void hwsim_frame_unref(struct hwsim_frame *frame)
frame->flags |= HWSIM_TX_STAT_ACK; frame->flags |= HWSIM_TX_STAT_ACK;
} }
send_frame_tx_info(frame); if (frame->src_radio)
send_frame_tx_info(frame);
} }
l_genl_msg_unref(frame->msg); l_genl_msg_unref(frame->msg);