projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0827a9f
)
USB: r8a66597-udc: return -ENOMEM if kzalloc() fails
author
Axel Lin
<axel.lin@gmail.com>
Tue, 17 Aug 2010 01:41:29 +0000
(09:41 +0800)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 24 Aug 2010 03:50:15 +0000
(20:50 -0700)
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/r8a66597-udc.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/r8a66597-udc.c
b/drivers/usb/gadget/r8a66597-udc.c
index 70a817842755484f5ee0b19e51db505b32532bf5..2456ccd9965e3432ab4fd32a33052c104e725698 100644
(file)
--- 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;
}