summaryrefslogtreecommitdiff
path: root/xmalloc.h
AgeCommit message (Expand)AuthorFilesLines
2015-04-07xmalloc: Add attribute warn_unused_result to allocation functionsTobias Klauser1-10/+10
2015-02-05xmalloc: Make xrealloc() arguments conform to realloc()Tobias Klauser1-1/+1
2014-06-25xmalloc: Add and use xcallocTobias Klauser1-0/+1
2013-06-15curve: simplify curve25519_proto_init and othersDaniel Borkmann1-0/+6
2013-06-12ioops: misc: add dup{,2}_or_die to ioopsDaniel Borkmann1-1/+0
2013-06-04misc: cleanup header commentsDaniel Borkmann1-6/+0
2013-05-12xmalloc: Make xfree a two part macro/inlineTobias Klauser1-6/+11
2013-03-15all: import netsniff-ng 0.5.8-rc0 sourceDaniel Borkmann1-0/+35
d82b1158b5e493fc6c54ab'>diff)
[media] usbvision: revert commit 588afcc1
Commit 588afcc1c0e4 ("[media] usbvision fix overflow of interfaces array")' should be reverted, because: * "!dev->actconfig->interface[ifnum]" won't catch a case where the value is not NULL but some garbage. This way the system may crash later with GPF. * "(ifnum >= USB_MAXINTERFACES)" does not cover all the error conditions. "ifnum" should be compared to "dev->actconfig-> desc.bNumInterfaces", i.e. compared to the number of "struct usb_interface" kzalloc()-ed, not to USB_MAXINTERFACES. * There is a "struct usb_device" leak in this error path, as there is usb_get_dev(), but no usb_put_dev() on this path. * There is a bug of the same type several lines below with number of endpoints. The code is accessing hard-coded second endpoint ("interface->endpoint[1].desc") which may not exist. It would be great to handle this in the same patch too. * All the concerns above are resolved by already-accepted commit fa52bd50 ("[media] usbvision: fix crash on detecting device with invalid configuration") * Mailing list message: http://www.spinics.net/lists/linux-media/msg94832.html Signed-off-by: Vladis Dronov <vdronov@redhat.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Cc: <stable@vger.kernel.org> # for v4.5 Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'Documentation/.gitignore')