staging: rtl8712: fix the bssid in mp_start_test()
Subsystems (2)
PATCH 1/1 staging: rtl8712: fix the bssid in mp_start_test()
We recently moved "bssid" off the stack, and allocated it with kmalloc() instead. Unfortunately, this one line was overlooked so it will copy random data into the &tgt_network->network instead of the data we want.
Fixes 0b18e5fe6008 ("staging: rtl8712: rtl871x_mp_ioctl: Move a large data struct onto the heap")
Signed-off-by Dan Carpenter <[email protected]>
--- drivers/staging/rtl8712/rtl871x_mp_ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8712/rtl871x_mp_ioctl.c +1 -1
@@ -197,7 +197,7 @@ static int mp_start_test(struct _adapter *padapter)/* 3 3. join pseudo AdHoc */ tgt_network->join_res =1 ; tgt_network->aid = psta->aid =1 ; -memcpy (&tgt_network->network, &bssid, length); +memcpy (&tgt_network->network, bssid, length);_clr_fwstate_ (pmlmepriv, _FW_UNDER_LINKING);r8712_os_indicate_connect (padapter);/* Set to LINKED STATE for MP TRX Testing */
Signature · 1 line
2.30.2