Skip to content
Snippets Groups Projects
Commit ed533f25 authored by Marek Szyprowski's avatar Marek Szyprowski Committed by 谢秀奇
Browse files

media: s5p-mfc: fix incorrect bus assignment in virtual child device


[ Upstream commit 1e0d0a5f ]

Virtual MFC codec's child devices must not be assigned to platform bus,
because they are allocated as raw 'struct device' and don't have the
corresponding 'platform' part. This fixes NULL pointer access revealed
recently by commit a66d9724 ("devres: Align data[] to
ARCH_KMALLOC_MINALIGN").

Fixes: c79667dd ("media: s5p-mfc: replace custom reserved memory handling code with generic one")

Reported-by: default avatarPaweł Chmiel <pawel.mikolaj.chmiel@gmail.com>
Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Tested-by: default avatarPaweł Chmiel <pawel.mikolaj.chmiel@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 61cc9f60
No related branches found
No related tags found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment