]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: visl: check if ctx->tpg_str_buf allocation failed
authorHans Verkuil <hverkuil+cisco@kernel.org>
Tue, 12 May 2026 06:46:15 +0000 (08:46 +0200)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Tue, 12 May 2026 07:39:03 +0000 (09:39 +0200)
commit813dacdda8f2e05b1309a4942e91531333b296ed
tree764a8efa76ec310f2cfd4c82c35cdf13f33473f3
parentbbba3e260a62810a717b4442a3bb96d0ec0f6309
media: visl: check if ctx->tpg_str_buf allocation failed

The result of ctx->tpg_str_buf = kzalloc(TPG_STR_BUF_SZ, GFP_KERNEL); was
never checked. Add this.

Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/test-drivers/visl/visl-core.c