[lkml]   [2019]   [May]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[BUG] rtlwifi: Resource leaks in error handling code of rtl_pci_probe()
In rtl_pci_probe(), rtl_pci_init() allocates some resources, such as:
pci_zalloc_consistent() -- resource
dev_alloc_skb() -- resource

pci_zalloc_consistent() -- resource

When ieee80211_register_hw() or rtl_pci_intr_mode_decide() fails, these
resources are not released in error handling code.

A possible fix is to call rtl_pci_deinit() in error handling code, but I
am not sure whether this is correct.
Thus, I only report the bugs.

These bugs are found by a runtime fuzzing tool named FIZZER written by us.

Best wishes,
Jia-Ju Bai

 \ /
  Last update: 2019-05-14 14:56    [W:0.024 / U:4.280 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site