LinuxKPI: fix bug in le32p_replace_bits()

Fix a bug that slipped in in 90707c4e44
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
This commit is contained in:
Bjoern A. Zeeb 2021-07-29 21:27:21 +00:00
parent c50c8502cb
commit 22e20d852f

View file

@ -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)