Never checked NULL pointer in drivers/media/v4l2-core/videobuf-core.c
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Never checked NULL pointer in drivers/media/v4l2-core/videobuf-core.c
- From: Shaobo He <shaobo@xxxxxxxxxxx>
- Date: Thu, 21 Feb 2019 17:47:52 -0700
- User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0
Hello everyone,
I found that macro `CALLPTR` in drivers/media/v4l2-core/videobuf-core.c can
evaluate to NULL yet all its usages (__videobuf_copy_to_user,
__videobuf_copy_stream) are never NULL checked. I doubt but am not completely
sure that use cases of the CALLPTR macro can accept NULL pointers. Please let me
know if it makes sense or not.
Best,
Shaobo
[Index of Archives]
[Linux Input]
[Video for Linux]
[Gstreamer Embedded]
[Mplayer Users]
[Linux USB Devel]
[Linux Audio Users]
[Linux Kernel]
[Linux SCSI]
[Yosemite Backpacking]