linux_dsm_epyc7002/drivers/net/wan
Amitoj Kaur Chawla 7cb43bebab wan: lmc: Switch to using managed resources
Use managed resource functions devm_kzalloc and pcim_enable_device
to simplify error handling. Subsequently, remove unnecessary
kfree, pci_disable_device and pci_release_regions.

To be compatible with the change, various gotos are replaced with
direct returns and unneeded labels are dropped.

Also, `sc` was only being freed in the probe function and not the
remove function before the change. By using devm_kzalloc this patch
also fixes this memory leak.

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-03-02 13:43:03 -05:00
..
lmc wan: lmc: Switch to using managed resources 2016-03-02 13:43:03 -05:00
.gitignore
c101.c
cosa.c cosa: missing error code on failure in probe() 2015-08-12 16:53:11 -07:00
cosa.h
dlci.c
dscc4.c dscc4: Undefined signed int shift 2016-02-13 06:10:21 -05:00
farsync.c
farsync.h
hd64570.c
hd64570.h
hd64572.c
hd64572.h
hdlc_cisco.c WAN: HDLC: Call notifiers before and after changing device type 2015-12-05 17:41:42 -05:00
hdlc_fr.c WAN: HDLC: Call notifiers before and after changing device type 2015-12-05 17:41:42 -05:00
hdlc_ppp.c WAN: HDLC: Call notifiers before and after changing device type 2015-12-05 17:41:42 -05:00
hdlc_raw_eth.c WAN: HDLC: Call notifiers before and after changing device type 2015-12-05 17:41:42 -05:00
hdlc_raw.c WAN: HDLC: Call notifiers before and after changing device type 2015-12-05 17:41:42 -05:00
hdlc_x25.c WAN: HDLC: Call notifiers before and after changing device type 2015-12-05 17:41:42 -05:00
hdlc.c WAN: HDLC: Call notifiers before and after changing device type 2015-12-05 17:41:42 -05:00
hostess_sv11.c
ixp4xx_hss.c
Kconfig
lapbether.c netfilter: Remove spurios included of netfilter.h 2015-06-18 21:14:32 +02:00
Makefile
n2.c
pc300too.c
pci200syn.c
sbni.c net: wan: sbni: fix device usage count 2015-09-05 17:32:53 -07:00
sbni.h
sdla.c
sealevel.c
wanxl.c wan: wanxl: add pci_disable_device in case of error 2015-12-14 16:21:58 -05:00
wanxl.h
wanxlfw.inc_shipped
wanxlfw.S
x25_asy.c x25_asy: Free x25_asy on x25_asy_open() failure. 2016-01-13 11:45:39 -05:00
x25_asy.h
z85230.c Doc: z8530book: Fix typo in API-z8530-sync-txdma-open.html 2015-07-10 23:45:31 -07:00
z85230.h