Commit 3610b20
committed
video: rockchip: vcodec_iommu_ion fix null pointer crash
Can not pass NULL address for vcodec_iommu_map_iommu, which will do
access to the iova and size.
Test on RK3399 EVB:
[ 0.918046] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[ 0.919653] pgd = ffffff80095b2000
[ 0.919958] [00000000] *pgd=00000000f7ffe003, *pud=00000000f7ffe003, *pmd=0000000000000000
[ 0.920722] Internal error: Oops: 96000045 [#1] PREEMPT SMP
[ 0.921220] Modules linked in:
[ 0.921509] CPU: 4 PID: 1 Comm: swapper/0 Not tainted 4.4.194 #8
[ 0.922041] Hardware name: rockchip,rk3399-excavator-edp (DT)
[ 0.922551] task: ffffffc00a368000 task.stack: ffffffc00a344000
[ 0.923080] PC is at ion_map_iommu+0x160/0x2c4
[ 0.923478] LR is at ion_map_iommu+0x148/0x2c4
Change-Id: I74837f7f7af2b62915af70ecf0be2f621484284f
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>1 parent ba30a52 commit 3610b20
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3021 | 3021 | | |
3022 | 3022 | | |
3023 | 3023 | | |
| 3024 | + | |
| 3025 | + | |
3024 | 3026 | | |
3025 | 3027 | | |
3026 | 3028 | | |
| |||
3132 | 3134 | | |
3133 | 3135 | | |
3134 | 3136 | | |
3135 | | - | |
3136 | | - | |
| 3137 | + | |
| 3138 | + | |
3137 | 3139 | | |
3138 | 3140 | | |
3139 | 3141 | | |
| |||
0 commit comments