tmp_suning_uos_patched/drivers/net/ipa
Alex Elder d27f0000d7 net: ipa: fix page free in ipa_endpoint_replenish_one()
commit 70132763d5d2e94cd185e3aa92ac6a3ba89068fa upstream.

Currently the (possibly compound) pages used for receive buffers are
freed using __free_pages().  But according to this comment above the
definition of that function, that's wrong:
    If you want to use the page's reference count to decide
    when to free the allocation, you should allocate a compound
    page, and use put_page() instead of __free_pages().

Convert the call to __free_pages() in ipa_endpoint_replenish_one()
to use put_page() instead.

Fixes: 6a606b90153b8 ("net: ipa: allocate transaction in replenish loop")
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-06-09 10:21:29 +02:00
..
gsi_private.h
gsi_reg.h
gsi_trans.c
gsi_trans.h
gsi.c net: ipa: record proper RX transaction count 2022-05-25 09:17:57 +02:00
gsi.h
ipa_clock.c
ipa_clock.h
ipa_cmd.c
ipa_cmd.h
ipa_data-sc7180.c
ipa_data-sdm845.c
ipa_data.h
ipa_endpoint.c net: ipa: fix page free in ipa_endpoint_replenish_one() 2022-06-09 10:21:29 +02:00
ipa_endpoint.h net: ipa: prevent concurrent replenish 2022-02-05 12:37:55 +01:00
ipa_gsi.c
ipa_gsi.h
ipa_interrupt.c
ipa_interrupt.h
ipa_main.c
ipa_mem.c
ipa_mem.h
ipa_modem.c
ipa_modem.h
ipa_qmi_msg.c
ipa_qmi_msg.h
ipa_qmi.c
ipa_qmi.h
ipa_reg.c
ipa_reg.h
ipa_smp2p.c
ipa_smp2p.h
ipa_table.c net: ipa: initialize all filter table slots 2021-09-22 12:27:57 +02:00
ipa_table.h
ipa_uc.c
ipa_uc.h
ipa_version.h
ipa.h
Kconfig
Makefile