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

Commit 02621d51 authored by Dov Levenglick's avatar Dov Levenglick
Browse files

usb: dwc: using atomic kzalloc



The function msm_ep_config() can be called from an
interrupt context. As such, must use the GFP_ATOMIC
flag when allocating memory.

Change-Id: I55e85fa703b7c0086a91d97f3f01adbba8e5d2fc
Signed-off-by: default avatarDov Levenglick <dovl@codeaurora.org>
parent ddc46d3a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -652,7 +652,7 @@ int msm_ep_config(struct usb_ep *ep)
	mdwc->original_ep_ops[dep->number] = ep->ops;

	/* Set new usb ops as we like */
	new_ep_ops = kzalloc(sizeof(struct usb_ep_ops), GFP_KERNEL);
	new_ep_ops = kzalloc(sizeof(struct usb_ep_ops), GFP_ATOMIC);
	if (!new_ep_ops) {
		dev_err(mdwc->dev,
			"%s: unable to allocate mem for new usb ep ops\n",