~mariusko/media-ctl/ubuntu

Viewing all changes in revision 86.

  • Committer: Laurent Pinchart
  • Date: 2012-11-15 10:42:25 UTC
  • Revision ID: git-v1:ac40b79f002a2315f909548614ccd2d408da25b7
media: Fix valgrind warnings

valgrind has no way to know that the kernel will fill links and pads
arrays passed to an ioctl through __user pointers. Allocate the arrays
with calloc() to make sure they get initialized. This also fixes the
potential integer overflow.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Sakari Ailus <sakari.ailus@iki.fi>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: