Thread (6 messages) 6 messages, 2 authors, 2021-08-12

Re: [PATCH v1] media: camss: vfe: Don't use vfe->base before it's assigned

From: Robert Foss <hidden>
Date: 2021-08-11 09:42:03
Also in: linux-arm-msm, lkml

Hey Marek,

Thanks for testing this.

On Wed, 11 Aug 2021 at 09:48, Marek Szyprowski [off-list ref] wrote:
On 10.08.2021 12:33, Robert Foss wrote:
quoted
vfe->ops->hw_version(vfe) being called before vfe->base has been assigned
is incorrect and causes crashes.

Fixes: b10b5334528a9 ("media: camss: vfe: Don't read hardware version needlessly")

Reported-by: Linux Kernel Functional Testing <redacted>
Signed-off-by: Robert Foss <redacted>
With this patch applied on top of linux next-20210810 instead of the
NULL pointer dereference I get following error on DragonBoard410c while
loading kernel modules:

[   18.480608] qcom-venus 1d00000.video-codec: Adding to iommu group 1
[   18.536167] qcom-camss 1b0ac00.camss: Adding to iommu group 2
[   18.600373] Internal error: synchronous external abort: 96000010 [#1]
PREEMPT SMP
I'll spin a v2 asap.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help