From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: drivers/net/wireless/intel/iwlwifi/fw/pnvm.c:332 iwl_pnvm_load() error: uninitialized symbol 'len'.
Date: Sat, 28 Aug 2021 14:33:48 +0800 [thread overview]
Message-ID: <202108281440.81ULgYYD-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 6559 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Luca Coelho <luciano.coelho@intel.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 64b4fc45bea6f4faa843d2f97ff51665280efee1
commit: 9dad325f9d57508b154f0bebbc341a8528e5729c iwlwifi: support loading the reduced power table from UEFI
date: 10 weeks ago
:::::: branch date: 7 hours ago
:::::: commit date: 10 weeks ago
config: arc-randconfig-m031-20210827 (attached as .config)
compiler: arceb-elf-gcc (GCC) 11.2.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch warnings:
drivers/net/wireless/intel/iwlwifi/fw/pnvm.c:332 iwl_pnvm_load() error: uninitialized symbol 'len'.
vim +/len +332 drivers/net/wireless/intel/iwlwifi/fw/pnvm.c
cdda18fbbefafc Luca Coelho 2021-02-10 255
cdda18fbbefafc Luca Coelho 2021-02-10 256 int iwl_pnvm_load(struct iwl_trans *trans,
cdda18fbbefafc Luca Coelho 2021-02-10 257 struct iwl_notif_wait_data *notif_wait)
cdda18fbbefafc Luca Coelho 2021-02-10 258 {
cdda18fbbefafc Luca Coelho 2021-02-10 259 u8 *data;
cdda18fbbefafc Luca Coelho 2021-02-10 260 size_t len;
84c3c9952afbf7 Luca Coelho 2021-06-21 261 struct pnvm_sku_package *package;
cdda18fbbefafc Luca Coelho 2021-02-10 262 struct iwl_notification_wait pnvm_wait;
cdda18fbbefafc Luca Coelho 2021-02-10 263 static const u16 ntf_cmds[] = { WIDE_ID(REGULATORY_AND_NVM_GROUP,
cdda18fbbefafc Luca Coelho 2021-02-10 264 PNVM_INIT_COMPLETE_NTFY) };
cdda18fbbefafc Luca Coelho 2021-02-10 265 int ret;
cdda18fbbefafc Luca Coelho 2021-02-10 266
cdda18fbbefafc Luca Coelho 2021-02-10 267 /* if the SKU_ID is empty, there's nothing to do */
cdda18fbbefafc Luca Coelho 2021-02-10 268 if (!trans->sku_id[0] && !trans->sku_id[1] && !trans->sku_id[2])
cdda18fbbefafc Luca Coelho 2021-02-10 269 return 0;
cdda18fbbefafc Luca Coelho 2021-02-10 270
cdda18fbbefafc Luca Coelho 2021-02-10 271 /*
cdda18fbbefafc Luca Coelho 2021-02-10 272 * If we already loaded (or tried to load) it before, we just
cdda18fbbefafc Luca Coelho 2021-02-10 273 * need to set it again.
cdda18fbbefafc Luca Coelho 2021-02-10 274 */
cdda18fbbefafc Luca Coelho 2021-02-10 275 if (trans->pnvm_loaded) {
cdda18fbbefafc Luca Coelho 2021-02-10 276 ret = iwl_trans_set_pnvm(trans, NULL, 0);
cdda18fbbefafc Luca Coelho 2021-02-10 277 if (ret)
cdda18fbbefafc Luca Coelho 2021-02-10 278 return ret;
cdda18fbbefafc Luca Coelho 2021-02-10 279 goto skip_parse;
cdda18fbbefafc Luca Coelho 2021-02-10 280 }
cdda18fbbefafc Luca Coelho 2021-02-10 281
a1a6a4cf49eceb Luca Coelho 2021-02-11 282 /* First attempt to get the PNVM from BIOS */
84c3c9952afbf7 Luca Coelho 2021-06-21 283 package = iwl_uefi_get_pnvm(trans, &len);
84c3c9952afbf7 Luca Coelho 2021-06-21 284 if (!IS_ERR_OR_NULL(package)) {
84c3c9952afbf7 Luca Coelho 2021-06-21 285 data = kmemdup(package->data, len, GFP_KERNEL);
84c3c9952afbf7 Luca Coelho 2021-06-21 286
84c3c9952afbf7 Luca Coelho 2021-06-21 287 /* free package regardless of whether kmemdup succeeded */
84c3c9952afbf7 Luca Coelho 2021-06-21 288 kfree(package);
84c3c9952afbf7 Luca Coelho 2021-06-21 289
84c3c9952afbf7 Luca Coelho 2021-06-21 290 if (data) {
84c3c9952afbf7 Luca Coelho 2021-06-21 291 /* we need only the data size */
84c3c9952afbf7 Luca Coelho 2021-06-21 292 len -= sizeof(*package);
a1a6a4cf49eceb Luca Coelho 2021-02-11 293 goto parse;
84c3c9952afbf7 Luca Coelho 2021-06-21 294 }
84c3c9952afbf7 Luca Coelho 2021-06-21 295 }
a1a6a4cf49eceb Luca Coelho 2021-02-11 296
a1a6a4cf49eceb Luca Coelho 2021-02-11 297 /* If it's not available, try from the filesystem */
cdda18fbbefafc Luca Coelho 2021-02-10 298 ret = iwl_pnvm_get_from_fs(trans, &data, &len);
cdda18fbbefafc Luca Coelho 2021-02-10 299 if (ret) {
82a08d0cd7b503 Johannes Berg 2021-01-15 300 /*
82a08d0cd7b503 Johannes Berg 2021-01-15 301 * Pretend we've loaded it - at least we've tried and
82a08d0cd7b503 Johannes Berg 2021-01-15 302 * couldn't load it at all, so there's no point in
82a08d0cd7b503 Johannes Berg 2021-01-15 303 * trying again over and over.
82a08d0cd7b503 Johannes Berg 2021-01-15 304 */
82a08d0cd7b503 Johannes Berg 2021-01-15 305 trans->pnvm_loaded = true;
6972592850c00e Luca Coelho 2020-10-08 306
cdda18fbbefafc Luca Coelho 2021-02-10 307 goto skip_parse;
1c58bed4b7f755 Johannes Berg 2021-01-15 308 }
b3e4c0f34c1752 Luca Coelho 2020-10-08 309
a1a6a4cf49eceb Luca Coelho 2021-02-11 310 parse:
cdda18fbbefafc Luca Coelho 2021-02-10 311 iwl_pnvm_parse(trans, data, len);
cdda18fbbefafc Luca Coelho 2021-02-10 312
cdda18fbbefafc Luca Coelho 2021-02-10 313 kfree(data);
cdda18fbbefafc Luca Coelho 2021-02-10 314
cdda18fbbefafc Luca Coelho 2021-02-10 315 skip_parse:
9dad325f9d5750 Luca Coelho 2021-06-21 316 data = NULL;
9dad325f9d5750 Luca Coelho 2021-06-21 317 /* now try to get the reduce power table, if not loaded yet */
9dad325f9d5750 Luca Coelho 2021-06-21 318 if (!trans->reduce_power_loaded) {
9dad325f9d5750 Luca Coelho 2021-06-21 319 data = iwl_uefi_get_reduced_power(trans, &len);
9dad325f9d5750 Luca Coelho 2021-06-21 320 if (IS_ERR_OR_NULL(data)) {
9dad325f9d5750 Luca Coelho 2021-06-21 321 /*
9dad325f9d5750 Luca Coelho 2021-06-21 322 * Pretend we've loaded it - at least we've tried and
9dad325f9d5750 Luca Coelho 2021-06-21 323 * couldn't load it at all, so there's no point in
9dad325f9d5750 Luca Coelho 2021-06-21 324 * trying again over and over.
9dad325f9d5750 Luca Coelho 2021-06-21 325 */
9dad325f9d5750 Luca Coelho 2021-06-21 326 trans->reduce_power_loaded = true;
9dad325f9d5750 Luca Coelho 2021-06-21 327
9dad325f9d5750 Luca Coelho 2021-06-21 328 goto skip_reduce_power;
9dad325f9d5750 Luca Coelho 2021-06-21 329 }
9dad325f9d5750 Luca Coelho 2021-06-21 330 }
9dad325f9d5750 Luca Coelho 2021-06-21 331
9dad325f9d5750 Luca Coelho 2021-06-21 @332 ret = iwl_trans_set_reduce_power(trans, data, len);
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 37125 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: Dan Carpenter <dan.carpenter@oracle.com>
To: kbuild-all@lists.01.org
Subject: drivers/net/wireless/intel/iwlwifi/fw/pnvm.c:332 iwl_pnvm_load() error: uninitialized symbol 'len'.
Date: Mon, 30 Aug 2021 13:22:54 +0300 [thread overview]
Message-ID: <202108281440.81ULgYYD-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 6605 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 64b4fc45bea6f4faa843d2f97ff51665280efee1
commit: 9dad325f9d57508b154f0bebbc341a8528e5729c iwlwifi: support loading the reduced power table from UEFI
date: 10 weeks ago
config: arc-randconfig-m031-20210827 (attached as .config)
compiler: arceb-elf-gcc (GCC) 11.2.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch warnings:
drivers/net/wireless/intel/iwlwifi/fw/pnvm.c:332 iwl_pnvm_load() error: uninitialized symbol 'len'.
vim +/len +332 drivers/net/wireless/intel/iwlwifi/fw/pnvm.c
cdda18fbbefafc Luca Coelho 2021-02-10 256 int iwl_pnvm_load(struct iwl_trans *trans,
cdda18fbbefafc Luca Coelho 2021-02-10 257 struct iwl_notif_wait_data *notif_wait)
cdda18fbbefafc Luca Coelho 2021-02-10 258 {
cdda18fbbefafc Luca Coelho 2021-02-10 259 u8 *data;
cdda18fbbefafc Luca Coelho 2021-02-10 260 size_t len;
84c3c9952afbf7 Luca Coelho 2021-06-21 261 struct pnvm_sku_package *package;
cdda18fbbefafc Luca Coelho 2021-02-10 262 struct iwl_notification_wait pnvm_wait;
cdda18fbbefafc Luca Coelho 2021-02-10 263 static const u16 ntf_cmds[] = { WIDE_ID(REGULATORY_AND_NVM_GROUP,
cdda18fbbefafc Luca Coelho 2021-02-10 264 PNVM_INIT_COMPLETE_NTFY) };
cdda18fbbefafc Luca Coelho 2021-02-10 265 int ret;
cdda18fbbefafc Luca Coelho 2021-02-10 266
cdda18fbbefafc Luca Coelho 2021-02-10 267 /* if the SKU_ID is empty, there's nothing to do */
cdda18fbbefafc Luca Coelho 2021-02-10 268 if (!trans->sku_id[0] && !trans->sku_id[1] && !trans->sku_id[2])
cdda18fbbefafc Luca Coelho 2021-02-10 269 return 0;
cdda18fbbefafc Luca Coelho 2021-02-10 270
cdda18fbbefafc Luca Coelho 2021-02-10 271 /*
cdda18fbbefafc Luca Coelho 2021-02-10 272 * If we already loaded (or tried to load) it before, we just
cdda18fbbefafc Luca Coelho 2021-02-10 273 * need to set it again.
cdda18fbbefafc Luca Coelho 2021-02-10 274 */
cdda18fbbefafc Luca Coelho 2021-02-10 275 if (trans->pnvm_loaded) {
cdda18fbbefafc Luca Coelho 2021-02-10 276 ret = iwl_trans_set_pnvm(trans, NULL, 0);
cdda18fbbefafc Luca Coelho 2021-02-10 277 if (ret)
cdda18fbbefafc Luca Coelho 2021-02-10 278 return ret;
cdda18fbbefafc Luca Coelho 2021-02-10 279 goto skip_parse;
^^^^^^^^^^^^^^^^
"len" not initialized here.
cdda18fbbefafc Luca Coelho 2021-02-10 280 }
cdda18fbbefafc Luca Coelho 2021-02-10 281
a1a6a4cf49eceb Luca Coelho 2021-02-11 282 /* First attempt to get the PNVM from BIOS */
84c3c9952afbf7 Luca Coelho 2021-06-21 283 package = iwl_uefi_get_pnvm(trans, &len);
84c3c9952afbf7 Luca Coelho 2021-06-21 284 if (!IS_ERR_OR_NULL(package)) {
84c3c9952afbf7 Luca Coelho 2021-06-21 285 data = kmemdup(package->data, len, GFP_KERNEL);
84c3c9952afbf7 Luca Coelho 2021-06-21 286
84c3c9952afbf7 Luca Coelho 2021-06-21 287 /* free package regardless of whether kmemdup succeeded */
84c3c9952afbf7 Luca Coelho 2021-06-21 288 kfree(package);
84c3c9952afbf7 Luca Coelho 2021-06-21 289
84c3c9952afbf7 Luca Coelho 2021-06-21 290 if (data) {
84c3c9952afbf7 Luca Coelho 2021-06-21 291 /* we need only the data size */
84c3c9952afbf7 Luca Coelho 2021-06-21 292 len -= sizeof(*package);
a1a6a4cf49eceb Luca Coelho 2021-02-11 293 goto parse;
84c3c9952afbf7 Luca Coelho 2021-06-21 294 }
84c3c9952afbf7 Luca Coelho 2021-06-21 295 }
a1a6a4cf49eceb Luca Coelho 2021-02-11 296
a1a6a4cf49eceb Luca Coelho 2021-02-11 297 /* If it's not available, try from the filesystem */
cdda18fbbefafc Luca Coelho 2021-02-10 298 ret = iwl_pnvm_get_from_fs(trans, &data, &len);
cdda18fbbefafc Luca Coelho 2021-02-10 299 if (ret) {
82a08d0cd7b503 Johannes Berg 2021-01-15 300 /*
82a08d0cd7b503 Johannes Berg 2021-01-15 301 * Pretend we've loaded it - at least we've tried and
82a08d0cd7b503 Johannes Berg 2021-01-15 302 * couldn't load it at all, so there's no point in
82a08d0cd7b503 Johannes Berg 2021-01-15 303 * trying again over and over.
82a08d0cd7b503 Johannes Berg 2021-01-15 304 */
82a08d0cd7b503 Johannes Berg 2021-01-15 305 trans->pnvm_loaded = true;
6972592850c00e Luca Coelho 2020-10-08 306
cdda18fbbefafc Luca Coelho 2021-02-10 307 goto skip_parse;
1c58bed4b7f755 Johannes Berg 2021-01-15 308 }
b3e4c0f34c1752 Luca Coelho 2020-10-08 309
a1a6a4cf49eceb Luca Coelho 2021-02-11 310 parse:
cdda18fbbefafc Luca Coelho 2021-02-10 311 iwl_pnvm_parse(trans, data, len);
cdda18fbbefafc Luca Coelho 2021-02-10 312
cdda18fbbefafc Luca Coelho 2021-02-10 313 kfree(data);
cdda18fbbefafc Luca Coelho 2021-02-10 314
cdda18fbbefafc Luca Coelho 2021-02-10 315 skip_parse:
9dad325f9d5750 Luca Coelho 2021-06-21 316 data = NULL;
9dad325f9d5750 Luca Coelho 2021-06-21 317 /* now try to get the reduce power table, if not loaded yet */
9dad325f9d5750 Luca Coelho 2021-06-21 318 if (!trans->reduce_power_loaded) {
9dad325f9d5750 Luca Coelho 2021-06-21 319 data = iwl_uefi_get_reduced_power(trans, &len);
Possibly initialized here? I looked at this and wasn't certain.
9dad325f9d5750 Luca Coelho 2021-06-21 320 if (IS_ERR_OR_NULL(data)) {
9dad325f9d5750 Luca Coelho 2021-06-21 321 /*
9dad325f9d5750 Luca Coelho 2021-06-21 322 * Pretend we've loaded it - at least we've tried and
9dad325f9d5750 Luca Coelho 2021-06-21 323 * couldn't load it at all, so there's no point in
9dad325f9d5750 Luca Coelho 2021-06-21 324 * trying again over and over.
9dad325f9d5750 Luca Coelho 2021-06-21 325 */
9dad325f9d5750 Luca Coelho 2021-06-21 326 trans->reduce_power_loaded = true;
9dad325f9d5750 Luca Coelho 2021-06-21 327
9dad325f9d5750 Luca Coelho 2021-06-21 328 goto skip_reduce_power;
9dad325f9d5750 Luca Coelho 2021-06-21 329 }
9dad325f9d5750 Luca Coelho 2021-06-21 330 }
9dad325f9d5750 Luca Coelho 2021-06-21 331
9dad325f9d5750 Luca Coelho 2021-06-21 @332 ret = iwl_trans_set_reduce_power(trans, data, len);
^^^
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
WARNING: multiple messages have this Message-ID (diff)
From: Dan Carpenter <dan.carpenter@oracle.com>
To: kbuild@lists.01.org, Luca Coelho <luciano.coelho@intel.com>
Cc: lkp@intel.com, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: drivers/net/wireless/intel/iwlwifi/fw/pnvm.c:332 iwl_pnvm_load() error: uninitialized symbol 'len'.
Date: Mon, 30 Aug 2021 13:22:54 +0300 [thread overview]
Message-ID: <202108281440.81ULgYYD-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 64b4fc45bea6f4faa843d2f97ff51665280efee1
commit: 9dad325f9d57508b154f0bebbc341a8528e5729c iwlwifi: support loading the reduced power table from UEFI
date: 10 weeks ago
config: arc-randconfig-m031-20210827 (attached as .config)
compiler: arceb-elf-gcc (GCC) 11.2.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch warnings:
drivers/net/wireless/intel/iwlwifi/fw/pnvm.c:332 iwl_pnvm_load() error: uninitialized symbol 'len'.
vim +/len +332 drivers/net/wireless/intel/iwlwifi/fw/pnvm.c
cdda18fbbefafc Luca Coelho 2021-02-10 256 int iwl_pnvm_load(struct iwl_trans *trans,
cdda18fbbefafc Luca Coelho 2021-02-10 257 struct iwl_notif_wait_data *notif_wait)
cdda18fbbefafc Luca Coelho 2021-02-10 258 {
cdda18fbbefafc Luca Coelho 2021-02-10 259 u8 *data;
cdda18fbbefafc Luca Coelho 2021-02-10 260 size_t len;
84c3c9952afbf7 Luca Coelho 2021-06-21 261 struct pnvm_sku_package *package;
cdda18fbbefafc Luca Coelho 2021-02-10 262 struct iwl_notification_wait pnvm_wait;
cdda18fbbefafc Luca Coelho 2021-02-10 263 static const u16 ntf_cmds[] = { WIDE_ID(REGULATORY_AND_NVM_GROUP,
cdda18fbbefafc Luca Coelho 2021-02-10 264 PNVM_INIT_COMPLETE_NTFY) };
cdda18fbbefafc Luca Coelho 2021-02-10 265 int ret;
cdda18fbbefafc Luca Coelho 2021-02-10 266
cdda18fbbefafc Luca Coelho 2021-02-10 267 /* if the SKU_ID is empty, there's nothing to do */
cdda18fbbefafc Luca Coelho 2021-02-10 268 if (!trans->sku_id[0] && !trans->sku_id[1] && !trans->sku_id[2])
cdda18fbbefafc Luca Coelho 2021-02-10 269 return 0;
cdda18fbbefafc Luca Coelho 2021-02-10 270
cdda18fbbefafc Luca Coelho 2021-02-10 271 /*
cdda18fbbefafc Luca Coelho 2021-02-10 272 * If we already loaded (or tried to load) it before, we just
cdda18fbbefafc Luca Coelho 2021-02-10 273 * need to set it again.
cdda18fbbefafc Luca Coelho 2021-02-10 274 */
cdda18fbbefafc Luca Coelho 2021-02-10 275 if (trans->pnvm_loaded) {
cdda18fbbefafc Luca Coelho 2021-02-10 276 ret = iwl_trans_set_pnvm(trans, NULL, 0);
cdda18fbbefafc Luca Coelho 2021-02-10 277 if (ret)
cdda18fbbefafc Luca Coelho 2021-02-10 278 return ret;
cdda18fbbefafc Luca Coelho 2021-02-10 279 goto skip_parse;
^^^^^^^^^^^^^^^^
"len" not initialized here.
cdda18fbbefafc Luca Coelho 2021-02-10 280 }
cdda18fbbefafc Luca Coelho 2021-02-10 281
a1a6a4cf49eceb Luca Coelho 2021-02-11 282 /* First attempt to get the PNVM from BIOS */
84c3c9952afbf7 Luca Coelho 2021-06-21 283 package = iwl_uefi_get_pnvm(trans, &len);
84c3c9952afbf7 Luca Coelho 2021-06-21 284 if (!IS_ERR_OR_NULL(package)) {
84c3c9952afbf7 Luca Coelho 2021-06-21 285 data = kmemdup(package->data, len, GFP_KERNEL);
84c3c9952afbf7 Luca Coelho 2021-06-21 286
84c3c9952afbf7 Luca Coelho 2021-06-21 287 /* free package regardless of whether kmemdup succeeded */
84c3c9952afbf7 Luca Coelho 2021-06-21 288 kfree(package);
84c3c9952afbf7 Luca Coelho 2021-06-21 289
84c3c9952afbf7 Luca Coelho 2021-06-21 290 if (data) {
84c3c9952afbf7 Luca Coelho 2021-06-21 291 /* we need only the data size */
84c3c9952afbf7 Luca Coelho 2021-06-21 292 len -= sizeof(*package);
a1a6a4cf49eceb Luca Coelho 2021-02-11 293 goto parse;
84c3c9952afbf7 Luca Coelho 2021-06-21 294 }
84c3c9952afbf7 Luca Coelho 2021-06-21 295 }
a1a6a4cf49eceb Luca Coelho 2021-02-11 296
a1a6a4cf49eceb Luca Coelho 2021-02-11 297 /* If it's not available, try from the filesystem */
cdda18fbbefafc Luca Coelho 2021-02-10 298 ret = iwl_pnvm_get_from_fs(trans, &data, &len);
cdda18fbbefafc Luca Coelho 2021-02-10 299 if (ret) {
82a08d0cd7b503 Johannes Berg 2021-01-15 300 /*
82a08d0cd7b503 Johannes Berg 2021-01-15 301 * Pretend we've loaded it - at least we've tried and
82a08d0cd7b503 Johannes Berg 2021-01-15 302 * couldn't load it at all, so there's no point in
82a08d0cd7b503 Johannes Berg 2021-01-15 303 * trying again over and over.
82a08d0cd7b503 Johannes Berg 2021-01-15 304 */
82a08d0cd7b503 Johannes Berg 2021-01-15 305 trans->pnvm_loaded = true;
6972592850c00e Luca Coelho 2020-10-08 306
cdda18fbbefafc Luca Coelho 2021-02-10 307 goto skip_parse;
1c58bed4b7f755 Johannes Berg 2021-01-15 308 }
b3e4c0f34c1752 Luca Coelho 2020-10-08 309
a1a6a4cf49eceb Luca Coelho 2021-02-11 310 parse:
cdda18fbbefafc Luca Coelho 2021-02-10 311 iwl_pnvm_parse(trans, data, len);
cdda18fbbefafc Luca Coelho 2021-02-10 312
cdda18fbbefafc Luca Coelho 2021-02-10 313 kfree(data);
cdda18fbbefafc Luca Coelho 2021-02-10 314
cdda18fbbefafc Luca Coelho 2021-02-10 315 skip_parse:
9dad325f9d5750 Luca Coelho 2021-06-21 316 data = NULL;
9dad325f9d5750 Luca Coelho 2021-06-21 317 /* now try to get the reduce power table, if not loaded yet */
9dad325f9d5750 Luca Coelho 2021-06-21 318 if (!trans->reduce_power_loaded) {
9dad325f9d5750 Luca Coelho 2021-06-21 319 data = iwl_uefi_get_reduced_power(trans, &len);
Possibly initialized here? I looked at this and wasn't certain.
9dad325f9d5750 Luca Coelho 2021-06-21 320 if (IS_ERR_OR_NULL(data)) {
9dad325f9d5750 Luca Coelho 2021-06-21 321 /*
9dad325f9d5750 Luca Coelho 2021-06-21 322 * Pretend we've loaded it - at least we've tried and
9dad325f9d5750 Luca Coelho 2021-06-21 323 * couldn't load it at all, so there's no point in
9dad325f9d5750 Luca Coelho 2021-06-21 324 * trying again over and over.
9dad325f9d5750 Luca Coelho 2021-06-21 325 */
9dad325f9d5750 Luca Coelho 2021-06-21 326 trans->reduce_power_loaded = true;
9dad325f9d5750 Luca Coelho 2021-06-21 327
9dad325f9d5750 Luca Coelho 2021-06-21 328 goto skip_reduce_power;
9dad325f9d5750 Luca Coelho 2021-06-21 329 }
9dad325f9d5750 Luca Coelho 2021-06-21 330 }
9dad325f9d5750 Luca Coelho 2021-06-21 331
9dad325f9d5750 Luca Coelho 2021-06-21 @332 ret = iwl_trans_set_reduce_power(trans, data, len);
^^^
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
next reply other threads:[~2021-08-28 6:33 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-28 6:33 kernel test robot [this message]
2021-08-30 10:22 ` drivers/net/wireless/intel/iwlwifi/fw/pnvm.c:332 iwl_pnvm_load() error: uninitialized symbol 'len' Dan Carpenter
2021-08-30 10:22 ` Dan Carpenter
-- strict thread matches above, loose matches on Subject: below --
2022-02-26 7:37 kernel test robot
2022-02-25 1:37 kernel test robot
2022-02-25 8:25 ` Dan Carpenter
2022-02-25 8:25 ` Dan Carpenter
2022-02-22 22:29 kernel test robot
2022-02-21 0:08 kernel test robot
2021-11-20 20:05 kernel test robot
2021-07-06 22:10 kernel test robot
2021-07-07 7:46 ` Dan Carpenter
2021-07-07 7:46 ` Dan Carpenter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202108281440.81ULgYYD-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.