Skip to contentSkip to conversation

media: pci: cx18: a possible null-pointer dereference in cx18_vapi()

BUG Jia-Ju Bai 1 participant 1 message Jul 29, 2019 Media (V4L/DVB)

lore
Share & tools
lore

Jia-Ju Bai

author
#0 lore raw

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