mirror_ubuntu-kernels/drivers/net/wireless/intel/iwlwifi
Johannes Berg 53d515ec67 iwlwifi: don't leak memory on allocation failure
If we fail to allocate the small chunk of memory for the
pieces of the firmware file, we leak the whole firmware
image instead...

Since the allocation failure is really unlikely, just bail
out at that point instead.

Remove the error message at the label since we now (and
actually have been) use it for various reasons.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
2017-04-25 22:48:56 +03:00
..
dvm iwlwifi: dvm: don't call << operator with a negative value 2017-02-08 17:54:20 +02:00
mvm iwlwifi: mvm: use defines instead of variables for shared dwell times 2017-04-25 22:48:15 +03:00
pcie iwlwifi: pcie: remove superfluous trans->dev assignment 2017-04-25 22:48:37 +03:00
iwl-1000.c iwlwifi: make configuration structs smaller 2016-05-10 22:34:06 +03:00
iwl-2000.c iwlwifi: make configuration structs smaller 2016-05-10 22:34:06 +03:00
iwl-5000.c iwlwifi: make configuration structs smaller 2016-05-10 22:34:06 +03:00
iwl-6000.c iwlwifi: fix MODULE_FIRMWARE for 6030 2017-01-26 09:38:58 +02:00
iwl-7000.c iwlwifi: mvm: freeze 7265D and 3168 on API version 29 2017-04-25 22:35:31 +03:00
iwl-8000.c iwlwifi: mvm: bump max API to 30 2017-04-11 14:54:32 +03:00
iwl-9000.c iwlwifi: mvm: change TX_CMD_SEC_KEY_FROM_TABLE value 2017-04-19 22:21:47 +03:00
iwl-a000.c iwlwifi: a000: fix memory offsets and lengths 2017-04-19 22:21:49 +03:00
iwl-agn-hw.h
iwl-config.h iwlwifi: support a000 CDB product 2017-04-19 22:21:48 +03:00
iwl-context-info.h iwlwifi: pcie: add context information support 2017-04-11 15:19:34 +03:00
iwl-csr.h iwlwifi: remove support for deprecated RF 2017-04-11 14:54:31 +03:00
iwl-debug.c
iwl-debug.h iwlwifi: add missing type declaration 2016-07-12 14:51:57 +03:00
iwl-devtrace-data.h
iwl-devtrace-io.h iwlwifi: centralize 64 bit HW registers write 2016-07-06 10:22:08 +03:00
iwl-devtrace-iwlwifi.h
iwl-devtrace-msg.h
iwl-devtrace-ucode.h
iwl-devtrace.c iwlwifi: don't export trace points that are used in iwlwifi only 2016-09-19 10:09:41 +03:00
iwl-devtrace.h iwlwifi: tracing: decouple from mac80211 2016-07-06 10:08:56 +03:00
iwl-drv.c iwlwifi: don't leak memory on allocation failure 2017-04-25 22:48:56 +03:00
iwl-drv.h iwlwifi: remove unnecessary argument to iwl_drv_start() 2017-02-06 19:19:25 +02:00
iwl-eeprom-parse.c iwlwifi: advertise maximal MPDU length when Rx MQ is supported 2016-07-01 16:51:22 +03:00
iwl-eeprom-parse.h iwlwifi: decouple PCIe transport from mac80211 2016-07-06 10:09:56 +03:00
iwl-eeprom-read.c
iwl-eeprom-read.h
iwl-fh.h iwlwifi: pcie: add context information support 2017-04-11 15:19:34 +03:00
iwl-fw-error-dump.h iwlwifi: Reserve iwl_fw_error_dump_type enum 2016-07-06 02:07:48 +03:00
iwl-fw-file.h iwlwifi: mvm: support new ADD_MODIFY_STA_KEY command 2017-04-11 14:54:35 +03:00
iwl-fw.h iwlwifi: enlarge number of ucode sections 2017-01-26 09:38:57 +02:00
iwl-io.c iwlwifi: use upper_32_bits/lower_32_bits where appropriate 2017-04-11 14:54:34 +03:00
iwl-io.h iwlwifi: centralize 64 bit HW registers write 2016-07-06 10:22:08 +03:00
iwl-modparams.h iwlwifi: decouple PCIe transport from mac80211 2016-07-06 10:09:56 +03:00
iwl-notif-wait.c iwlwifi: split the handler and the wake parts of the notification infra 2017-04-19 22:21:49 +03:00
iwl-notif-wait.h iwlwifi: split the handler and the wake parts of the notification infra 2017-04-19 22:21:49 +03:00
iwl-nvm-parse.c iwlwifi: move BIOS MCC retrieval to common code 2016-09-19 10:09:37 +03:00
iwl-nvm-parse.h iwlwifi: move BIOS MCC retrieval to common code 2016-09-19 10:09:37 +03:00
iwl-op-mode.h
iwl-phy-db.c iwlwifi: mvm: set HCMD_NAME for PHY_DB as well 2016-09-19 11:29:33 +03:00
iwl-phy-db.h iwlwifi: mvm: remove redundant alloc_ctx parameter 2016-05-10 22:34:03 +03:00
iwl-prph.h iwlwifi: mvm: support change to a000 smem API 2017-04-19 22:21:48 +03:00
iwl-scd.h
iwl-trans.c iwlwifi: remove unnecessary dev_cmd_headroom parameter 2017-04-11 14:54:39 +03:00
iwl-trans.h iwlwifi: move to TVQM mode 2017-04-19 22:21:47 +03:00
Kconfig iwlwifi: make RTPM depend on EXPERT 2017-02-08 17:54:20 +02:00
Makefile iwlwifi: pcie: introduce a000 TX queues management 2017-04-19 22:20:52 +03:00