Commit 20ec811e authored by Amit Choudhary's avatar Amit Choudhary Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (5489): Codec.c: check kmalloc() return value.

parent aaa40cb8
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -348,6 +348,9 @@ videocodec_build_table (void)
	kfree(videocodec_buf);
	videocodec_buf = kmalloc(size, GFP_KERNEL);

	if (!videocodec_buf)
		return 0;

	i = 0;
	i += scnprintf(videocodec_buf + i, size - 1,
		      "<S>lave or attached <M>aster name  type flags    magic    ");