wanlong bf34673bce wireless: rtl8852bs: fix oops in rtw_phl_cmd_scan_request() during
suspend

Unable to handle kernel NULL pointer dereference at virtual address 0000000000000169
Oops [#1]
Modules linked in: algif_hash
 algif_skcipher af_alg 8852bs binfmt_misc sch_fq_codel ip_tables autofs4
CPU: 5 PID: 1001 Comm: fsm_thread Tainted: G        W          6.6.63 #20250623142956
Hardware name: spacemit k1-x deb1 board (DT)
epc : rtw_phl_cmd_scan_request+0x24/0x98c [8852bs]
 ra : rtw_sitesurvey_cmd+0x3e8/0x67a [8852bs]
epc : ffffffff0237dc42 ra : ffffffff022fa748 sp : ffffffc80939ba00
 gp : ffffffff820fac50 tp : ffffffd905ff8c80 t0 : ffffffc80939baa8
 t1 : 0000000000000001 t2 : 4f525245203a5754 s0 : ffffffc80939bae0
 s1 : ffffffc80926e18c a0 : ffffffc80063d000 a1 : ffffffd904328000
 a2 : 0000000000000010 a3 : 0000000000006312 a4 : 0000000000000000
 a5 : 0000000000000000 a6 : 0000000000000000 a7 : ffffffff8213c7b8
 s2 : ffffffc80926d048 s3 : ffffffd904328000 s4 : ffffffff026b8c08
 s5 : ffffffd907830000 s6 : 0000000000000000 s7 : 0000000000000070
 s8 : 0000000000000001 s9 : ffffffff026b7fd8 s10: ffffffd907837a78
 s11: ffffffd92c6dfe00 t3 : ffffffff82112ba7 t4 : ffffffff82112ba7
 t5 : ffffffff82112ba8 t6 : ffffffd9078300aa
status: 0000000200000120 badaddr: 0000000000000169 cause: 000000000000000d
[<ffffffff0237dc42>] rtw_phl_cmd_scan_request+0x24/0x98c [8852bs]
[<ffffffff022fa748>] rtw_sitesurvey_cmd+0x3e8/0x67a [8852bs]
[<ffffffff0227ba34>] rrm_sitesurvey.constprop.0.isra.0+0xd2/0x19e [8852bs]
[<ffffffff0227f760>] rrm_do_meas_st_hdl+0x10a/0x30c [8852bs]
[<ffffffff0227875c>] fsm_state_run.isra.0+0x66/0x128 [8852bs]
[<ffffffff022794ee>] fsm_state_goto+0x50/0x13c [8852bs]
[<ffffffff0227f482>] rrm_idle_st_hdl+0x2e2/0x356 [8852bs]
[<ffffffff0227875c>] fsm_state_run.isra.0+0x66/0x128 [8852bs]
[<ffffffff02278b9c>] fsm_thread_share+0x37e/0x478 [8852bs]
[<ffffffff8003ea76>] kthread+0xda/0xf6
[<ffffffff80fde1ce>] ret_from_fork+0xe/0x18
Code: f556 1180 b703 1c05 ba17 0033 0a13 fd2a 2783 000a (4703) 1697

Change-Id: I0ae3eca28216f31824767ff4ba6eacc637be1537
Signed-off-by: wanlong <long.wan@spacemit.com>
2025-07-01 10:21:44 +08:00
2024-11-28 18:28:07 +08:00
2024-12-25 19:33:00 +08:00
2025-06-17 20:11:24 +08:00
2025-06-16 09:10:48 +08:00
2022-09-28 09:02:20 +02:00
2024-11-28 18:28:00 +08:00
2024-11-22 15:38:37 +01:00

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.
Description
No description provided
Readme 2.9 GiB
Languages
C 97.8%
Assembly 1%
Shell 0.4%
Makefile 0.3%
Python 0.2%