]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtl8723bs: Fix a resource leak in sd_int_dpc
authorXiangyang Zhang <xyz.sun.ok@gmail.com>
Mon, 28 Jun 2021 15:22:39 +0000 (23:22 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Jul 2021 09:40:00 +0000 (11:40 +0200)
commit04e02d319232f92776ebfe06fab8e9be7e173087
tree2ee1a103eee1bd4570f4baaef1a35a848a3aade5
parent1f1666416de944b8eb5f4b7888ec514f1a2fe178
staging: rtl8723bs: Fix a resource leak in sd_int_dpc

The "c2h_evt" variable is not freed when function call
"c2h_evt_read_88xx" failed

Fixes: 88a1abb19b1d ("staging: Add rtl8723bs sdio wifi driver")
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Xiangyang Zhang <xyz.sun.ok@gmail.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20210628152239.5475-1-xyz.sun.ok@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/sdio_ops.c