mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
LinuxKPI: fix bug in le32p_replace_bits()
Fix a bug that slipped in in90707c4e44using the correct field in le32p_replace_bits(). Sponsored by: The FreeBSD Foundation (cherry picked from commit22e20d852f)
This commit is contained in:
parent
2314243b4a
commit
3ce981ee8e
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