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
1 changed files with 2 additions and 1 deletions

View File

@ -1171,7 +1171,8 @@ static void hwsim_frame_unref(struct hwsim_frame *frame)
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);