commit | 851b10d60879539bec8acecb35ed361393399282 | [log] [tgz] |
---|---|---|
author | Konstantin Khlebnikov <khlebnikov@yandex-team.ru> | Mon Apr 18 14:34:05 2016 +0300 |
committer | David S. Miller <davem@davemloft.net> | Tue Apr 19 20:04:24 2016 -0400 |
tree | 33f99b2a2017827402ed7b9215e249867ab56cbd | |
parent | 04aeb56a173282210c5dab5c9b3071fa3613806f [diff] |
net/mlx4_en: do batched put_page using atomic_sub This patch fixes couple error paths after allocation failures. Atomic set of page reference counter is safe only if it is zero, otherwise set can race with any speculative get_page_unless_zero. Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru> Signed-off-by: David S. Miller <davem@davemloft.net>