diff options
author | Dennis Dalessandro <[email protected]> | 2017-04-09 10:17:30 -0700 |
---|---|---|
committer | Doug Ledford <[email protected]> | 2017-04-28 13:56:24 -0400 |
commit | 4608e4c8f2417a5a2985da9890710033c434c387 (patch) | |
tree | 0c6c927b4763da1a749e3a8f2c97122cc78b6c14 /include/linux/fpga/fpga-mgr.h | |
parent | 12220267645cb7d1f3f699218e0098629e932e1f (diff) |
IB/hfi1: Use bool in process_ecn
The process_ecn intends to return a bool value. However it is doing
so incorrectly by ANDing the fecn mask. The fecn bit is bit 31. Bool is
not a native data type and is up to the compiler to implement how it
sees fit. It is conceivable that this upper bit gets washed out.
Fix by converting to a bool properly.
Cc: [email protected]
Fixes: Commit fd2b562edca6 ("IB/hfi1: Pull FECN/BECN processing to a common place")
Reviewed-by: Mike Marciniszyn <[email protected]>
Signed-off-by: Dennis Dalessandro <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions