android_kernel_oneplus_msm8998/drivers/net/wireless/brcm80211/brcmfmac
Arend van Spriel 95ef12394a brcmfmac: introduce brcmf_net_detach() function
In case of error during brcmf_bus_start() the network interfaces were
freed using free_netdev(). However, the interfaces may have additional
memory allocated which is not freed. The netdev has destructor set to
brcmf_cfg80211_free_netdev() which frees the additional memory if
allocated and call free_netdev(). The brcmf_net_detach() either calls
brcmf_cfg80211_free_netdev() directly or uses unregister_netdev() when
struct net_device::reg_state indicates the netdev was registered.

Reported-by: Daniel (Deognyoun) Kim <dekim@broadcom.com>
Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2015-09-29 10:28:52 +03:00
..
bcdc.c brcmfmac: change prototype for brcmf_fws_hdrpull() 2015-09-29 10:28:50 +03:00
bcdc.h
bcmsdh.c brcmfmac: have sdio return -EIO when device communication is not possible 2015-06-15 12:55:22 +03:00
btcoex.c brcmfmac: use brcmf_get_ifp() to map ifidx to struct brcmf_if instance 2015-09-29 10:28:40 +03:00
btcoex.h
bus.h brcmfmac: Reopen netdev queue on bus state data. 2015-01-29 09:59:05 +02:00
cfg80211.c brcmfmac: introduce brcmf_net_detach() function 2015-09-29 10:28:52 +03:00
cfg80211.h brcmfmac: enable 802.11d support in firmware 2015-01-06 20:30:16 +02:00
chip.c brcmfmac: add support for BCM4358 PCIe device 2015-05-09 16:26:56 +03:00
chip.h brcmfmac: extract ram size info from internal memory registers 2015-03-13 16:10:33 +02:00
common.c brcmfmac: store revinfo retrieval result 2015-01-29 09:59:17 +02:00
common.h brcmfmac: signal completion of 802.1x. 2015-01-06 20:29:57 +02:00
commonring.c brcmfmac: Update msgbuf read pointer quicker. 2015-06-15 12:42:25 +03:00
commonring.h brcmfmac: Update msgbuf read pointer quicker. 2015-06-15 12:42:25 +03:00
core.c brcmfmac: introduce brcmf_net_detach() function 2015-09-29 10:28:52 +03:00
core.h brcmfmac: add mapping for interface index to bsscfg index 2015-09-29 10:28:43 +03:00
debug.c brcmfmac: use debugfs_create_devm_seqfile() helper function 2015-06-15 12:42:29 +03:00
debug.h brcmfmac: add dedicated debug level for firmware console logging 2015-09-29 10:28:44 +03:00
feature.c brcmfmac: use brcmf_get_ifp() to map ifidx to struct brcmf_if instance 2015-09-29 10:28:40 +03:00
feature.h brcmfmac: Check if firmware supports p2p 2015-06-15 12:55:19 +03:00
firmware.c brcmfmac: Add support for host platform NVRAM loading. 2015-08-25 15:32:32 +03:00
firmware.h brcmfmac: Add support for multiple PCIE devices in nvram. 2015-05-09 16:26:58 +03:00
flowring.c brcmfmac: use brcmf_get_ifp() to map ifidx to struct brcmf_if instance 2015-09-29 10:28:40 +03:00
flowring.h brcmfmac: Improve throughput by scheduling msbug flow worker. 2015-05-26 14:09:54 +03:00
fweh.c brcmfmac: use brcmf_get_ifp() to map ifidx to struct brcmf_if instance 2015-09-29 10:28:40 +03:00
fweh.h brcmfmac: bump highest event number for 4339 firmware 2015-08-25 15:32:30 +03:00
fwil.c brcmfmac: SDIO: avoid using bus state for private states. 2015-01-29 09:59:03 +02:00
fwil.h brcmfmac: determine chip info when not provided by bus layer 2015-01-29 09:59:11 +02:00
fwil_types.h brcmfmac: rework .get_station() callback 2015-06-15 12:55:21 +03:00
fwsignal.c brcmfmac: change prototype for brcmf_fws_hdrpull() 2015-09-29 10:28:50 +03:00
fwsignal.h brcmfmac: change prototype for brcmf_fws_hdrpull() 2015-09-29 10:28:50 +03:00
Makefile brcmfmac: (clean) Rename sdio related files. 2014-10-30 15:26:48 -04:00
msgbuf.c brcmfmac: pass struct brcmf_if instance in brcmf_txfinalize() 2015-09-29 10:28:41 +03:00
msgbuf.h brcmfmac: Update msgbuf commonring size for improved throughput. 2015-03-20 09:03:39 +02:00
of.c brcmfmac: allow device tree node without 'interrupts' property 2015-05-26 14:09:53 +03:00
of.h
p2p.c brcmfmac: change parameters for brcmf_remove_interface() 2015-09-29 10:28:32 +03:00
p2p.h cfg80211: pass name_assign_type to rdev_add_virtual_intf() 2015-03-30 10:36:17 +02:00
pcie.c brcmfmac: add dedicated debug level for firmware console logging 2015-09-29 10:28:44 +03:00
pcie.h
proto.c brcmfmac: (clean) Rename sdio related files. 2014-10-30 15:26:48 -04:00
proto.h brcmfmac: make brcmf_proto_hdrpull() return struct brcmf_if instance 2015-09-29 10:28:30 +03:00
sdio.c brcmfmac: add dedicated debug level for firmware console logging 2015-09-29 10:28:44 +03:00
sdio.h brcmfmac: make sdio suspend wait for threads to freeze 2015-02-26 15:14:19 +02:00
tracepoint.c
tracepoint.h
usb.c brcmfmac: check result of USB firmware request 2015-05-09 17:00:46 +03:00
usb.h
vendor.c brcmfmac: Perform bound checking on vendor command buffer 2015-03-07 10:52:30 +02:00
vendor.h