Merge branch 'net-ipa-fix-page-free-in-two-spots'
authorJakub Kicinski <kuba@kernel.org>
Sat, 28 May 2022 01:29:53 +0000 (18:29 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 28 May 2022 01:29:54 +0000 (18:29 -0700)
commit9bae058ab57f88c7c1ad61797ee16a5abeda42c2
treeaded95c52a9545597adfef63abdc7af531efeb12
parent4dc160a52da1330d54d561f9dac8a9e0ef333895
parent70132763d5d2e94cd185e3aa92ac6a3ba89068fa
Merge branch 'net-ipa-fix-page-free-in-two-spots'

Alex Elder says:

====================
net: ipa: fix page free in two spots

When a receive buffer is not wrapped in an SKB and passed to the
network stack, the (compound) page gets freed within the IPA driver.
This is currently quite rare.

The pages are freed using __free_pages(), but they should instead be
freed using page_put().  This series fixes this, in two spots.

These patches work for the current linus/master branch, but won't
apply cleanly to earlier stable branches.  (Nevertheless, the fix is
a trivial substitution everwhere __free_pages() is called.)
====================

Link: https://lore.kernel.org/r/20220526152314.1405629-1-elder@linaro.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>