3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-04 02:18:49 +02:00

scan: Add ref to cmd to make it reusable on failure

This commit is contained in:
Tim Kourt 2019-02-27 13:59:01 -08:00 committed by Denis Kenzior
parent 917815e99a
commit 45e5c42726

View File

@ -454,8 +454,11 @@ static int scan_request_send_next(struct scan_context *sc,
sc->start_cmd_id = scan_send_start(&cmd, scan_request_triggered, sc);
if (sc->start_cmd_id) {
l_genl_msg_ref(cmd);
sc->triggered = false;
sc->current_sr = sr;
return 0;
}