diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-05-04 09:19:54 +0300 |
---|---|---|
committer | Luca Coelho <luciano.coelho@intel.com> | 2016-07-06 00:37:21 +0300 |
commit | 32afd15b0f56eb9adf107fb52c6b76c308f5966c (patch) | |
tree | bfa79739f739acbb64e35e5ec7459bd12dc6dbde | |
parent | bdbc58abe7960ec1c87bd6201d31538fbda0d1ba (diff) | |
download | linux-32afd15b0f56eb9adf107fb52c6b76c308f5966c.tar.gz linux-32afd15b0f56eb9adf107fb52c6b76c308f5966c.tar.bz2 linux-32afd15b0f56eb9adf107fb52c6b76c308f5966c.zip |
iwlwifi: mvm: silence uninitialized variable warning
"max_amsdu_len" isn't set if kstrtouint() fails.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
-rw-r--r-- | drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c b/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c index 406cf1cb945c..b34489817c70 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c @@ -1020,6 +1020,8 @@ static ssize_t iwl_dbgfs_max_amsdu_len_write(struct iwl_mvm *mvm, int ret; ret = kstrtouint(buf, 0, &max_amsdu_len); + if (ret) + return ret; if (max_amsdu_len > IEEE80211_MAX_MPDU_LEN_VHT_11454) return -EINVAL; |