Home
last modified time | relevance | path

Searched hist:"7042 e8f2" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/usb/gadget/legacy/
H A Dinode.c7042e8f2 Sat Jul 19 22:42:07 CDT 2014 Wei Yongjun <yongjun_wei@trendmicro.com.cn> usb: gadget: Fix return value check in ep_write()

In case of error, the function memdup_user() returns ERR_PTR()
and never returns NULL. The NULL test in the return value check
should be replaced with IS_ERR().

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Felipe Balbi <balbi@ti.com>
7042e8f2 Sat Jul 19 22:42:07 CDT 2014 Wei Yongjun <yongjun_wei@trendmicro.com.cn> usb: gadget: Fix return value check in ep_write()

In case of error, the function memdup_user() returns ERR_PTR()
and never returns NULL. The NULL test in the return value check
should be replaced with IS_ERR().

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Felipe Balbi <balbi@ti.com>