diff options
| author | Ben Chan <benchan@chromium.org> | 2014-06-27 23:17:24 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-06-29 14:41:04 -0700 |
| commit | 0fbce84c6f0c5ba7ce2be5fec19caaca62586883 (patch) | |
| tree | 6df066d729121124a7ef86f0a5c429c4b88d9959 /include/linux | |
| parent | 78adbb284cf319edd05d7322ca41e877b6f628e5 (diff) | |
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 <dan.carpenter@oracle.com>
Reported-by: Michalis Pappas <mpappas@fastmail.fm>
Signed-off-by: Ben Chan <benchan@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
