mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 10:22:47 +01:00
knownnetworks: check for valid info before calling op
This commit is contained in:
parent
99483489bc
commit
6aeeb9eaad
@ -216,7 +216,7 @@ const struct iovec *network_info_get_extra_ies(const struct network_info *info,
|
|||||||
struct scan_bss *bss,
|
struct scan_bss *bss,
|
||||||
size_t *num_elems)
|
size_t *num_elems)
|
||||||
{
|
{
|
||||||
if (!info->ops->get_extra_ies)
|
if (!info || !info->ops->get_extra_ies)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
return info->ops->get_extra_ies(info, bss, num_elems);
|
return info->ops->get_extra_ies(info, bss, num_elems);
|
||||||
|
Loading…
Reference in New Issue
Block a user