diff options
| author | Javier Martinez Canillas <javier@osg.samsung.com> | 2015-09-22 03:39:36 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-09-29 05:16:29 +0300 |
| commit | e98631d83c84adfee9d33f04808a6e0eb2fa0345 (patch) | |
| tree | 2bf0e324750d7e6f91d7861a17a81c4dc15c6291 /include/linux | |
| parent | 3f937918b73b2a56ef238a2dcc0bbd97d48490b9 (diff) | |
| download | linux-e98631d83c84adfee9d33f04808a6e0eb2fa0345.tar.xz | |
staging: dgap: fix returned errno code in dgap_parsefile()
The driver is using -1 instead of the -ENOMEM defined macro to specify
that a buffer allocation failed. Since the error number is propagated,
the caller will get a -EPERM which is the wrong error condition.
Also, the smatch tool complains with the following warning:
dgap_parsefile() warn: returning -1 instead of -ENOMEM is sloppy
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
