]> git.baikalelectronics.ru Git - kernel.git/commit
net: igmp: increase size of mr_ifc_count
authorEric Dumazet <edumazet@google.com>
Wed, 11 Aug 2021 19:57:15 +0000 (12:57 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 11 Aug 2021 22:54:10 +0000 (15:54 -0700)
commit7fec8c57fe9438ec71e1343111427165526256f6
tree0c4a94d50ac5dc9f09a84b630c88b60b7e77279a
parent6644d3c8b2811cfcfaeee7fda190dfb748cde659
net: igmp: increase size of mr_ifc_count

Some arches support cmpxchg() on 4-byte and 8-byte only.
Increase mr_ifc_count width to 32bit to fix this problem.

Fixes: ad07b581da57 ("net: igmp: fix data-race in igmp_ifc_timer_expire()")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20210811195715.3684218-1-eric.dumazet@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/inetdevice.h
net/ipv4/igmp.c