author: Xiangyang Zhang <xyz.sun.ok@gmail.com> 2021-06-28 23:22:39 +0800
committer: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2021-08-12 13:32:18 +0200
commit: 125b1d808b98be800ad5c64c6428ba18ffa37bc7
parent: 7a4e7a65d088df2f59c378668f8c10b500861aa8
Commit Summary:
Diffstat:
1 file changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/rtl8723bs/hal/sdio_ops.c b/drivers/staging/rtl8723bs/hal/sdio_ops.c
index a31694525bc1..eaf7d689b0c5 100644
--- a/drivers/staging/rtl8723bs/hal/sdio_ops.c
+++ b/drivers/staging/rtl8723bs/hal/sdio_ops.c
@@ -921,6 +921,8 @@ void sd_int_dpc(struct adapter *adapter)
} else {
rtw_c2h_wk_cmd(adapter, (u8 *)c2h_evt);
}
+ } else {
+ kfree(c2h_evt);
}
} else {
/* Error handling for malloc fail */