usbnet: fix memory allocation in helpers