linux/drivers/net/wireless/realtek/rtl818x/rtl8180
Jia-Ju Bai e4c8b456c5 rtl818x_pci: Fix a memory leak in rtl8180_init_rx_ring
When dev_alloc_skb or pci_dma_mapping_error in rtl8180_init_rx_ring fails,
the memory allocated by pci_zalloc_consistent is not freed.

This patch fixes the bug by adding pci_free_consistent
in error handling code.

Signed-off-by: Jia-Ju Bai <baijiaju1990@163.com>
Signed-off-by: Julian Calaby <julian.calaby@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2016-04-26 12:08:17 +03:00
..
Makefile
dev.c rtl818x_pci: Fix a memory leak in rtl8180_init_rx_ring 2016-04-26 12:08:17 +03:00
grf5101.c
grf5101.h
max2820.c
max2820.h
rtl8180.h
rtl8225.c
rtl8225.h
rtl8225se.c
rtl8225se.h
sa2400.c
sa2400.h