Re: [PATCH] usb: gadget: add error handling for platform_get_resource_byname

2018-06-12 Thread Sergei Shtylyov
Hello! On 6/12/2018 7:32 AM, Zhouyang Jia wrote: When platform_get_resource_byname fails, the lack of error-handling code may cause unexpected results. What results? This patch adds error-handling code after calling platform_get_resource_byname. Signed-off-by: Zhouyang Jia ---

Re: [PATCH] usb: gadget: add error handling for platform_get_resource_byname

2018-06-12 Thread Sergei Shtylyov
Hello! On 6/12/2018 7:32 AM, Zhouyang Jia wrote: When platform_get_resource_byname fails, the lack of error-handling code may cause unexpected results. What results? This patch adds error-handling code after calling platform_get_resource_byname. Signed-off-by: Zhouyang Jia ---