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:
parent
0a6b6d0ca5
commit
92841b4976
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user