diff options
author | Emmanuel Grumbach | 2013-06-11 15:17:21 +0300 |
---|---|---|
committer | Johannes Berg | 2013-06-11 20:12:02 +0200 |
commit | 476a9e09cbe37bad93de6e460b76f89f3ad22c9b (patch) | |
tree | e9269eab24e1a19bdbd0954cb189dd5595b33659 /drivers/net/wireless/iwlwifi/iwl-phy-db.c | |
parent | 0742a75a72ee52a7424554a1d49882dd9db195e3 (diff) |
iwlwifi: ignore 0-length PHY DB sections
This can happen during development but can cause problems,
WARN (once) and go on.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Reviewed-by: Guy Cohen <guy.cohen@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-phy-db.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-phy-db.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-phy-db.c b/drivers/net/wireless/iwlwifi/iwl-phy-db.c index 25745daa0d5d..84acb4deca8a 100644 --- a/drivers/net/wireless/iwlwifi/iwl-phy-db.c +++ b/drivers/net/wireless/iwlwifi/iwl-phy-db.c @@ -413,6 +413,9 @@ static int iwl_phy_db_send_all_channel_groups( if (!entry) return -EINVAL; + if (WARN_ON_ONCE(!entry->size)) + continue; + /* Send the requested PHY DB section */ err = iwl_send_phy_db_cmd(phy_db, type, |