mirror of
https://github.com/opnsense/src.git
synced 2026-02-20 00:11:07 -05:00
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:
parent
c50c8502cb
commit
22e20d852f
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue