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)
commit990e4ad3ddcb72216caeddd6e62c5f45a21e8121
tree2ee1a103eee1bd4570f4baaef1a35a848a3aade5
parent2734d6c1b1a089fb593ef6a23d4b70903526fe0c
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: 554c0a3abf21 ("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