[PATCH 5.17 0475/1126] rtw88: check for validity before using a pointer