diff options
| author | Cyril Roelandt <[email protected]> | 2012-11-16 18:17:01 -0300 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2012-12-26 10:04:46 -0200 |
| commit | cb412a8da82233af001d13c28fc54f25a2001aef (patch) | |
| tree | 8b6d6f8f985ae3aa2bfb7d39e938f2bf45f3b57f /tools/perf/scripts/python/netdev-times.py | |
| parent | 899a179dbf5878fd01c0bd3b0e884ec526916afb (diff) | |
[media] staging/media/solo6x10/v4l2-enc.c: fix error-handling
The return values of copy_to_user() and copy_from_user() cannot be negative.
Found using the following semantich patch:
<spml>
@exists@
identifier ret;
statement S;
expression E;
@@
(
* ret = copy_to_user(...);
|
* ret = copy_from_user(...);
)
... when != ret = E
when != if (ret) { <+... ret = E; ...+> }
* if (ret < 0)
S
</spml>
Signed-off-by: Cyril Roelandt <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions