mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] USB: r8a66597-udc: return -ENOMEM if kzalloc() fails
@ 2010-08-17  1:41 Axel Lin
  0 siblings, 0 replies; only message in thread
From: Axel Lin @ 2010-08-17  1:41 UTC (permalink / raw)
  To: linux-kernel; +Cc: Yoshihiro Shimoda, Greg Kroah-Hartman, Paul Mundt, linux-usb

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 drivers/usb/gadget/r8a66597-udc.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/usb/gadget/r8a66597-udc.c b/drivers/usb/gadget/r8a66597-udc.c
index 70a8178..2456ccd 100644
--- a/drivers/usb/gadget/r8a66597-udc.c
+++ b/drivers/usb/gadget/r8a66597-udc.c
@@ -1557,6 +1557,7 @@ static int __init r8a66597_probe(struct platform_device *pdev)
 	/* initialize ucd */
 	r8a66597 = kzalloc(sizeof(struct r8a66597), GFP_KERNEL);
 	if (r8a66597 == NULL) {
+		ret = -ENOMEM;
 		printk(KERN_ERR "kzalloc error\n");
 		goto clean_up;
 	}
-- 
1.7.2




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-08-17  1:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-17  1:41 [PATCH] USB: r8a66597-udc: return -ENOMEM if kzalloc() fails Axel Lin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®