[PATCH 0/4] staging: rtl8712: clean up dynamic memory management

Nam Cao posted 4 patches 3 years, 5 months ago
There is a newer version of this series
drivers/staging/rtl8712/os_intfs.c     | 27 +++++++++++++++++++++-----
drivers/staging/rtl8712/recv_osdep.h   |  8 ++++----
drivers/staging/rtl8712/rtl8712_recv.c |  7 ++++---
drivers/staging/rtl8712/rtl871x_recv.c | 16 ++++++++-------
4 files changed, 39 insertions(+), 19 deletions(-)
[PATCH 0/4] staging: rtl8712: clean up dynamic memory management
Posted by Nam Cao 3 years, 5 months ago
This driver is fine if memory allocation never fails. However it does not
handle allocation failure well. This can either lead to memory leak, or
unallocated buffers being used.

Nam Cao (4):
  Revert "staging: r8712u: Tracking kmemleak false positives."
  staging: rtl8712: check for alloc fail in _r8712_init_recv_priv()
  staging: rtl8712: check for return value of _r8712_init_xmit_priv()
  staging: rtl8712: fix potential memory leak

 drivers/staging/rtl8712/os_intfs.c     | 27 +++++++++++++++++++++-----
 drivers/staging/rtl8712/recv_osdep.h   |  8 ++++----
 drivers/staging/rtl8712/rtl8712_recv.c |  7 ++++---
 drivers/staging/rtl8712/rtl871x_recv.c | 16 ++++++++-------
 4 files changed, 39 insertions(+), 19 deletions(-)

-- 
2.25.1