Re: [PATCH v4 0/2] mmc: sdio: fixes some leaks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On 2022/11/10 10:55, Yang Yingliang wrote:
This patchset fix a refcount leak and two memory leaks about
SDIO function.

v3 -> v4:
   Drop patch1, keep calling put_device() to free memory,
   set 'func->card' to NULL to avoid redundant put.

v2 -> v3:
   Change to call of_node_put() in remove() function to
   fix node refcount leak.

v1 -> v2:
   Fix compile error in patch #2.

Yang Yingliang (2):
   mmc: sdio: fix of node refcount leak in sdio_add_func()
   mmc: sdio: fix possible memory leak in some error path

  drivers/mmc/core/sdio.c     | 1 +
  drivers/mmc/core/sdio_bus.c | 6 +++---
  drivers/mmc/core/sdio_cis.c | 3 ++-
  3 files changed, 6 insertions(+), 4 deletions(-)
Is this look good to you, or any suggestions?

Thanks,
Yang



[Index of Archives]     [Linux Memonry Technology]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux