diff options
author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2021-07-29 21:27:21 +0000 |
---|---|---|
committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2021-07-31 22:15:35 +0000 |
commit | 22e20d852ff400a486da24e5d1d92c841a3e39d9 (patch) | |
tree | d19570a63273cd755438f8080ac76d6188ff9e4a | |
parent | c50c8502cb629571f35089690d6e9a9bc4d60813 (diff) |
LinuxKPI: fix bug in le32p_replace_bits()
Fix a bug that slipped in in 90707c4e44de03ea36be183ef2226601c66169cb
using the correct field in le32p_replace_bits().
MFC after: 3 days
Reviewed by: hselasky
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D31352
-rw-r--r-- | sys/compat/linuxkpi/common/include/linux/bitfield.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/bitfield.h b/sys/compat/linuxkpi/common/include/linux/bitfield.h index 27082cbd4886..a805c1bca5a1 100644 --- a/sys/compat/linuxkpi/common/include/linux/bitfield.h +++ b/sys/compat/linuxkpi/common/include/linux/bitfield.h @@ -90,7 +90,7 @@ static __inline void le32p_replace_bits(uint32_t *p, uint32_t v, uint32_t f) { - *p = (*p & ~(cpu_to_le32(v))) | le32_encode_bits(v, f); + *p = (*p & ~(cpu_to_le32(f))) | le32_encode_bits(v, f); } #define __bf_shf(x) (__builtin_ffsll(x) - 1) |