mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-06 12:00:17 +01:00
wifi: error check nla_parse_nested()
Makes coverity happy.
This commit is contained in:
parent
9b1c6e9497
commit
4752ef20d6
1 changed files with 6 additions and 4 deletions
|
|
@ -934,8 +934,9 @@ static int nl80211_wiphy_info_handler (struct nl_msg *msg, void *arg)
|
|||
|
||||
nla_for_each_nested (nl_freq, tb_band[NL80211_BAND_ATTR_FREQS],
|
||||
rem_freq) {
|
||||
nla_parse_nested (tb_freq, NL80211_FREQUENCY_ATTR_MAX,
|
||||
nl_freq, freq_policy);
|
||||
if (nla_parse_nested (tb_freq, NL80211_FREQUENCY_ATTR_MAX,
|
||||
nl_freq, freq_policy) < 0)
|
||||
continue;
|
||||
|
||||
if (!tb_freq[NL80211_FREQUENCY_ATTR_FREQ])
|
||||
continue;
|
||||
|
|
@ -955,8 +956,9 @@ static int nl80211_wiphy_info_handler (struct nl_msg *msg, void *arg)
|
|||
|
||||
nla_for_each_nested (nl_freq, tb_band[NL80211_BAND_ATTR_FREQS],
|
||||
rem_freq) {
|
||||
nla_parse_nested (tb_freq, NL80211_FREQUENCY_ATTR_MAX,
|
||||
nl_freq, freq_policy);
|
||||
if (nla_parse_nested (tb_freq, NL80211_FREQUENCY_ATTR_MAX,
|
||||
nl_freq, freq_policy) < 0)
|
||||
continue;
|
||||
|
||||
if (!tb_freq[NL80211_FREQUENCY_ATTR_FREQ])
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue