Commit b44ac98
committed
NTB: ntb_transport: Fix off-by-one on doorbells count
ilog2() returns zero when there is only one doorbell, that made
qp_count zero and failed any client attachment. Use of fls64()
instead fixes this off-by-one error.
Signed-off-by: Alexander Motin <alexander.motin@TrueNAS.com>1 parent 7f5e1a1 commit b44ac98
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1435 | 1435 | | |
1436 | 1436 | | |
1437 | 1437 | | |
1438 | | - | |
| 1438 | + | |
1439 | 1439 | | |
1440 | 1440 | | |
1441 | 1441 | | |
| |||
0 commit comments