diff options
| author | Colin Ian King <[email protected]> | 2018-03-21 19:34:58 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2018-03-22 18:52:43 +0000 |
| commit | 1574639411b3ce311b846cae7fda56bf1af7d027 (patch) | |
| tree | 2817a1b1cd4ad4f2bdafb9c7bf2c10875a0d483f /drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | |
| parent | Documentation/networking: Add net DIM documentation (diff) | |
| download | kernel-1574639411b3ce311b846cae7fda56bf1af7d027.tar.gz kernel-1574639411b3ce311b846cae7fda56bf1af7d027.zip | |
gre: fix TUNNEL_SEQ bit check on sequence numbering
The current logic of flags | TUNNEL_SEQ is always non-zero and hence
sequence numbers are always incremented no matter the setting of the
TUNNEL_SEQ bit. Fix this by using & instead of |.
Detected by CoverityScan, CID#1466039 ("Operands don't affect result")
Fixes: 77a5196a804e ("gre: add sequence number for collect md mode.")
Signed-off-by: Colin Ian King <[email protected]>
Acked-by: William Tu <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h')
0 files changed, 0 insertions, 0 deletions
