From: Wei Yongjun Date: Sun, 20 Jul 2014 03:42:07 +0000 (+0800) Subject: usb: gadget: Fix return value check in ep_write() X-Git-Tag: omap-fixes-against-v3.17-rc3~24^2~15^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7042e8f2f6f5c76b6173748570312bbeb044c7dd;p=pandora-kernel.git 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 Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed