Skip to content
Commit 6e5e5def authored by 蒋家盛's avatar 蒋家盛 Committed by Hans Verkuil
Browse files

media: coda: Add check for kmalloc



As the kmalloc may return NULL pointer,
it should be better to check the return value
in order to avoid NULL poineter dereference,
same as the others.

Fixes: cb1d3a33 ("[media] coda: add CODA7541 JPEG support")
Signed-off-by: default avatarJiasheng Jiang <jiasheng@iscas.ac.cn>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
parent 6b808223
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment