Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ASoC: rockchip-spi-codec: fix kctonrol mute case crash
fix kcontrol mute case crash, tested by `dumpsys car_service inject-vhal-event 289475072 1,0`. [ 136.260357][ T632] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000010 [ 136.262328][ T632] Mem abort info: [ 136.264924][ T632] ESR = 0x96000005 [ 136.265362][ T632] EC = 0x25: DABT (current EL), IL = 32 bits [ 136.266072][ T632] SET = 0, FnV = 0 [ 136.266406][ T632] EA = 0, S1PTW = 0 [ 136.266772][ T632] Data abort info: [ 136.267094][ T632] ISV = 0, ISS = 0x00000005 [ 136.267518][ T632] CM = 0, WnR = 0 [ 136.267853][ T632] user pgtable: 4k pages, 39-bit VAs, pgdp=000000012871b000 [ 136.268492][ T632] [0000000000000010] pgd=0000000000000000, p4d=0000000000000000, pud=0000000000000000 [ 136.269342][ T632] Internal error: Oops: 96000005 [#1] PREEMPT SMP [ 136.269899][ T632] Modules linked in: ahci_platform libahci_platform himax_mmi ohci_platform ili210x ohci_hcd [ 136.270788][ T632] CPU: 2 PID: 632 Comm: android.hardwar Not tainted 5.10.198 rockchip-linux#46 [ 136.271453][ T632] Hardware name: Rockchip RK3588 VEHICLE EVB V22 Board (DT) [ 136.272077][ T632] pstate: 80400009 (Nzcv daif +PAN -UAO -TCO BTYPE=--) [ 136.272673][ T632] pc : spi_codec_ext_ch_mute_put+0x14/0x40 [ 136.273178][ T632] lr : snd_ctl_elem_write+0x128/0x16c [ 136.273636][ T632] sp : ffffffc00e44bc10 [ 136.273987][ T632] x29: ffffffc00e44bc10 x28: ffffff811e293900 [ 136.274514][ T632] x27: 0000000000000000 x26: 0000000000000000 [ 136.275040][ T632] x25: 0000000000000000 x24: ffffff81006024a0 [ 136.275566][ T632] x23: ffffff8100602000 x22: 00000000c4c85513 [ 136.276092][ T632] x21: ffffff8110838b00 x20: ffffff811cf0f000 [ 136.276618][ T632] x19: ffffff8100602000 x18: ffffffc00dc45040 [ 136.277144][ T632] x17: 0000000020000000 x16: 0000000000000001 [ 136.277669][ T632] x15: 0000000000000000 x14: 000000020000001a [ 136.278195][ T632] x13: 754d206b63616279 x12: 0000000000000000 [ 136.278722][ T632] x11: 0000000000006574 x10: 0000000000000000 [ 136.279249][ T632] x9 : 0000000000000004 x8 : ffffff81038eb000 [ 136.279781][ T632] x7 : 0000000000000000 x6 : ffffff811cf0f4c8 [ 136.280311][ T632] x5 : ffffff811cf0f4c8 x4 : 0000000000000000 [ 136.280840][ T632] x3 : 0000000000000000 x2 : ffffff811cf0f000 [ 136.281367][ T632] x1 : ffffff811cf0f000 x0 : ffffff8107260c00 [ 136.281894][ T632] Call trace: [ 136.282184][ T632] spi_codec_ext_ch_mute_put+0x14/0x40 [ 136.282655][ T632] snd_ctl_elem_write+0x128/0x16c [ 136.283083][ T632] snd_ctl_ioctl+0x7dc/0xb48 [ 136.283479][ T632] __arm64_sys_ioctl+0x90/0xc8 [ 136.283888][ T632] el0_svc_common+0xac/0x1ac [ 136.284283][ T632] do_el0_svc+0x1c/0x28 [ 136.284637][ T632] el0_svc+0x10/0x1c [ 136.284968][ T632] el0_sync_handler+0x68/0xac [ 136.285374][ T632] el0_sync+0x164/0x180 Change-Id: I35ec1fb0974b8dd9b58bd6d8b2b362a414cb4cd7 Signed-off-by: Zheng Zhiqi <looper.zheng@rock-chips.com>
- Loading branch information