From: Ben Chan Date: Sat, 28 Jun 2014 06:17:24 +0000 (-0700) Subject: staging: gdm72xx: return -EINVAL instead of BUG_ON for invalid data length X-Git-Tag: omap-for-v3.17/fixes-against-rc2~166^2~1268 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fbce84c6f0c5ba7ce2be5fec19caaca62586883;p=pandora-kernel.git staging: gdm72xx: return -EINVAL instead of BUG_ON for invalid data length This patch changes gdm_usb_send() and gdm_sdio_send() to return -EINVAL instead of calling BUG_ON if an invalid data length is passed to the functions. Reported-by: Dan Carpenter Reported-by: Michalis Pappas Signed-off-by: Ben Chan Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed