diff options
| author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2016-04-07 07:45:31 +0000 |
|---|---|---|
| committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2016-04-07 07:45:31 +0000 |
| commit | fc9e99e266a15b5cc5a27c98eb82325ceec91bc3 (patch) | |
| tree | a103bf1727eafce5ad8b38e27adfbc1b813921bb /sys/ofed/include/linux | |
| parent | e17fa06dbe50b37d644c564f863bfd739bf1f288 (diff) | |
Notes
Diffstat (limited to 'sys/ofed/include/linux')
| -rw-r--r-- | sys/ofed/include/linux/bitops.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ofed/include/linux/bitops.h b/sys/ofed/include/linux/bitops.h index f225fdc6d9db..a58ffd0c1689 100644 --- a/sys/ofed/include/linux/bitops.h +++ b/sys/ofed/include/linux/bitops.h @@ -138,11 +138,11 @@ find_last_bit(unsigned long *addr, unsigned long size) if (mask) return (bit + __flsl(mask)); } - while (--pos) { + while (pos--) { addr--; bit -= BITS_PER_LONG; if (*addr) - return (bit + __flsl(mask)); + return (bit + __flsl(*addr)); } return (size); } |
