diff options
| author | Markos Chandras <[email protected]> | 2014-06-23 10:38:55 +0100 |
|---|---|---|
| committer | Ralf Baechle <[email protected]> | 2014-06-26 10:48:21 +0100 |
| commit | 10c4d614d2ffcfc17add01f9648c3e530fb308d1 (patch) | |
| tree | 13c0ca1332b969d85f472483ae16dce3471c4436 /drivers/scsi/mpt2sas/mpi/mpi2_raid.h | |
| parent | 78b95b662c4c633206c997fe2bd25a9c680e047a (diff) | |
MIPS: bpf: Fix is_range() semantics
is_range() was meant to check whether the number is within
the s16 range or not. However the return values and consumers expected
the exact opposite. We fix that by inverting the logic in the function
to return 'true' for < s16 and 'false' for > s16.
Signed-off-by: Markos Chandras <[email protected]>
Reported-by: Alexei Starovoitov <[email protected]>
Cc: David S. Miller <[email protected]>
Cc: Daniel Borkmann <[email protected]>
Cc: Alexei Starovoitov <[email protected]>
Cc: [email protected]
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/7131/
Signed-off-by: Ralf Baechle <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions