summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3/dwc3-omap.c
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-05-07 19:50:06 +0800
committerFelipe Balbi <balbi@ti.com>2013-05-15 17:25:31 +0300
commit481d30427e5506fc1f5c27bbb94faef9d1ec72a0 (patch)
treeddefad33841921bd5a51a3128fcc239c17bb1ca0 /drivers/usb/dwc3/dwc3-omap.c
parentc3661951032d002d710c2187c5d9dbc8b4cabfa2 (diff)
downloadlinux-481d30427e5506fc1f5c27bbb94faef9d1ec72a0.tar.bz2
usb: gadget: dummy_hcd: fix error return code in init()
Fix to return -ENOMEM in the kzalloc() error handling case instead of 0(following platform_device_add_data() will overwrite it to 0), as done elsewhere in this function. Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3/dwc3-omap.c')
0 files changed, 0 insertions, 0 deletions