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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux