3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-20 12:39:25 +01:00

hwsim: Don't try l_genl_attr_next if _attr_init fails.

This was causing a segfault.
This commit is contained in:
Andrzej Zaborowski 2015-04-17 17:17:50 +02:00 committed by Denis Kenzior
parent 0a6b6d0ca5
commit 92841b4976

View File

@ -125,6 +125,7 @@ static void destroy_callback(struct l_genl_msg *msg, void *user_data)
}
l_info("Destroyed radio");
goto done;
}
while (l_genl_attr_next(&attr, &type, &len, &data)) {