Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a093cb9a authored by Tarun Gupta's avatar Tarun Gupta Committed by Gerrit - the friendly Code Review server
Browse files

USB: f_ecm: Increase the IN endpoint buffer allocation



Some UDC may require allocation of some extra bytes for
TX buffer due to hardware requirement. Add necessary
changes for the same.

Change-Id: I2c7c034bd499615f7a10a172b7b8091486970924
Signed-off-by: default avatarTarun Gupta <tarung@codeaurora.org>
parent d86edc41
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -774,7 +774,8 @@ ecm_bind(struct usb_configuration *c, struct usb_function *f)
	ecm->notify_req = usb_ep_alloc_request(ep, GFP_KERNEL);
	ecm->notify_req = usb_ep_alloc_request(ep, GFP_KERNEL);
	if (!ecm->notify_req)
	if (!ecm->notify_req)
		goto fail;
		goto fail;
	ecm->notify_req->buf = kmalloc(ECM_STATUS_BYTECOUNT, GFP_KERNEL);
	ecm->notify_req->buf = kmalloc(ECM_STATUS_BYTECOUNT +
			cdev->gadget->extra_buf_alloc, GFP_KERNEL);
	if (!ecm->notify_req->buf)
	if (!ecm->notify_req->buf)
		goto fail;
		goto fail;
	ecm->notify_req->context = ecm;
	ecm->notify_req->context = ecm;