Commit 8deb1e2a authored by Zhang Heng's avatar Zhang Heng Committed by Hans Verkuil
Browse files

media: usb: use kmalloc_array() to replace kmalloc()



Use kmalloc_array() to replace kmalloc() with multiplication.
kmalloc_array() has multiply overflow check, which will be safer.

Signed-off-by: default avatarZhang Heng <zhangheng@kylinos.cn>
Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
parent 648dec68
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment