linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG] media: pci: cx18: a possible null-pointer dereference in cx18_vapi()
@ 2019-07-29  9:40 Jia-Ju Bai
  0 siblings, 0 replies; only message in thread
From: Jia-Ju Bai @ 2019-07-29  9:40 UTC (permalink / raw)
  To: awalls, mchehab; +Cc: linux-media, linux-kernel

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-07-29  9:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-29  9:40 [BUG] media: pci: cx18: a possible null-pointer dereference in cx18_vapi() Jia-Ju Bai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).