diff options
| author | Jia-Ju Bai <[email protected]> | 2016-03-18 13:27:09 +1100 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2016-04-26 12:08:17 +0300 |
| commit | e4c8b456c53d4beee5adaf5768c762171e2244f3 (patch) | |
| tree | 1fa2304c3b51fc7d66a7235deb9f1315adbcc9e1 /tools/perf/scripts/python/syscall-counts.py | |
| parent | 06d05463ee337e85e42c6073b6f2f46fbfb05b96 (diff) | |
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 <[email protected]>
Signed-off-by: Julian Calaby <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions