From 0fbce84c6f0c5ba7ce2be5fec19caaca62586883 Mon Sep 17 00:00:00 2001 From: Ben Chan Date: Fri, 27 Jun 2014 23:17:24 -0700 Subject: [PATCH] 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-format-patch failed