From: Wei Yongjun Date: Tue, 7 May 2013 11:50:06 +0000 (+0800) Subject: usb: gadget: dummy_hcd: fix error return code in init() X-Git-Tag: v3.10-rc3~26^2~26^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=481d30427e5506fc1f5c27bbb94faef9d1ec72a0;p=pandora-kernel.git 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 Signed-off-by: Wei Yongjun Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed