From: Krzysztof Opasiak
> Functions usbg_allocate_function() and usbg_allocate_binding()
> had allocated sizeof(usbg_config) instead of usbg_function
> and usbg_binding.
...
> usbg_function *f;
>
> - f = malloc(sizeof(usbg_config));
> + f = malloc(sizeof(usbg_function));
Use the much safer:
f = malloc(sizeof (*f));
David
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html