[<prev] [next>] [day] [month] [year] [list]
Message-ID: <d49c3c7d-1f2c-6eae-414e-b8e8bc813ebc@gmail.com>
Date: Mon, 29 Jul 2019 17:40:48 +0800
From: Jia-Ju Bai <baijiaju1990@...il.com>
To: awalls@...metrocast.net, mchehab@...nel.org
Cc: linux-media@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [BUG] media: pci: cx18: a possible null-pointer dereference in
cx18_vapi()
In cx18_vapi(), when cx is NULL, it is still used on line 833:
CX18_ERR("cx == NULL (cmd=%x)\n", cmd);
v4l2_err(&cx->v4l2_dev, fmt , ## args)
Thus, a possible null-pointer dereference may occur.
This bug is found by a static analysis tool STCheck written by us.
I do not know how to correctly fix this bug, so I only report it.
Best wishes,
Jia-Ju Bai
Powered by blists - more mailing lists