[PATCH 5.17 0477/1126] rtw88: fix memory overrun and memory leak during hw_scan