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>
Thu, 12 Aug 2021 11:22:13 +0000 (13:22 +0200)
commit369101e399117a4019d3ee3c03318f820a9d7745
treec84433513076ae82c0418edcfb5310aee899d4d7
parent1628b64efb3638ae959cc81ff2b293eba92ee2e0
staging: rtl8723bs: Fix a resource leak in sd_int_dpc

commit 990e4ad3ddcb72216caeddd6e62c5f45a21e8121 upstream.

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