mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-09-02 18:06:13 +02:00
![]() The ipu_task_thread thread ran by kthread_run() could be excuted before kthread_run() returns especially when 'nosmp' or 'maxcpus=1' kernel bootup parameters are used. So, in this case, the thread[0] or thread[1] entries in struct ipu_soc are not yet set before ipu_task_thread() references them to set thread affinity, hence a NULL pointer de-referencing issue happens. Fix this by referencing *current* task in ipu_task_thread() instead of the uninitialized thread[0] or thread[1] entries. This fixes an old bug introduced by the below commit in linux-imx: commit 0d36f8226d22 ("ENGR00175724-2 IPU: change ipu_device thread process mode to interrupt mode.") Signed-off-by: Liu Ying <victor.liu@nxp.com> Reviewed-by: Sandor Yu <Sandor.yu@nxp.com> Acked-by: Jason Liu <jason.hui.liu@nxp.com> |
||
---|---|---|
.. | ||
ipu_calc_stripes_sizes.c | ||
ipu_capture.c | ||
ipu_common.c | ||
ipu_device.c | ||
ipu_disp.c | ||
ipu_ic.c | ||
ipu_param_mem.h | ||
ipu_pixel_clk.c | ||
ipu_prv.h | ||
ipu_regs.h | ||
Kconfig | ||
Makefile | ||
pre-regs.h | ||
pre.c | ||
prg-regs.h | ||
prg.c | ||
vdoa.c | ||
vdoa.h |