lib: configfs: Fix the memory allocation for the array of format descriptors

calloc() expects the first parameter to be the number of elements and
the second to be the size of each element in bytes.

The arguments passed to calloc() are reversed. Fix it by swapping the
arguments.

Signed-off-by: Mehdi Djait <mehdi.djait@linux.intel.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
1 file changed
tree: 30a54c031792a93b01704fd537e656c1ee7d28c6
  1. include/
  2. lib/
  3. scripts/
  4. src/
  5. .gitignore
  6. Makefile
  7. meson.build
  8. README.md
README.md

uvcgadget - UVC gadget C library

uvcgadget is a pure C library that implements handling of UVC gadget functions.

Utilities

  • uvc-gadget - Sample test application

Build instructions:

To compile:

$ meson build
$ ninja -C build

Cross compiling instructions:

Cross compilation can be managed by meson. Please read the directions at https://mesonbuild.com/Cross-compilation.html for detailed guidance on using meson.

In brief summary:

$ meson build --cross <meson cross file>
$ ninja -C build