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

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)) {