diff options
| author | Javier Martinez Canillas <[email protected]> | 2015-09-22 02:39:36 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2015-09-29 04:16:29 +0200 |
| commit | e98631d83c84adfee9d33f04808a6e0eb2fa0345 (patch) | |
| tree | 2bf0e324750d7e6f91d7861a17a81c4dc15c6291 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 3f937918b73b2a56ef238a2dcc0bbd97d48490b9 (diff) | |
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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions