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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user