From: Mitali Borkar Date: Sat, 10 Apr 2021 14:56:40 +0000 (+0530) Subject: staging: rtl8192e: Fix incorrect pointer check X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=26be3a5d845312bae0397b1008e766340945cb53;p=linux.git staging: rtl8192e: Fix incorrect pointer check In commit 92172da23c56 ("staging: rtl8192e: replace comparison to NULL by bool") a check was changed from looking at the data to the pointer, which was incorrect, so revert that portion of the commit to have the proper logic restored. Reported-by: Julia Lawall Signed-off-by: Mitali Borkar Fixes: 92172da23c56 ("staging: rtl8192e: replace comparison to NULL by bool") Link: https://lore.kernel.org/r/YHG8qARLUX2KPWwI@kali Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8192e/rtl819x_TSProc.c b/drivers/staging/rtl8192e/rtl819x_TSProc.c index 744a06b30d513..6c51323104e5b 100644 --- a/drivers/staging/rtl8192e/rtl819x_TSProc.c +++ b/drivers/staging/rtl8192e/rtl819x_TSProc.c @@ -329,7 +329,7 @@ bool GetTs(struct rtllib_device *ieee, struct ts_common_info **ppTS, } *ppTS = SearchAdmitTRStream(ieee, Addr, UP, TxRxSelect); - if (ppTS) + if (*ppTS) return true; if (!bAddNewTs) {