diff options
author | Rodrigo Vivi <[email protected]> | 2016-08-03 08:22:57 -0700 |
---|---|---|
committer | Rodrigo Vivi <[email protected]> | 2016-08-05 09:39:47 -0700 |
commit | 4e9121e6b4f9fee47e6746bfdb6745951b7a9b20 (patch) | |
tree | 2ccca24d811228b3cce05268d0f48f70548decc5 /lib/mpi/mpi-bit.c | |
parent | 19e0b4cab9cf3c07bc84360a854f9040d8c64644 (diff) |
drm/i915: Fix copy_to_user usage for pipe_crc
Copy to user return the number of bytes it couldn't write
and zero on success. So any number different than 0 should
be considered a fault, not only when it doesn't write
the full size.
v2: fixed the inverted logic. (Ville)
Cc: Ville Syrjälä <[email protected]>
Reviewed-by: Daniel Vetter <[email protected]>
Signed-off-by: Rodrigo Vivi <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions