]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9e7f7fc245392f9e4384e07d5d38f23ca62a4fe4
treeaded95c52a9545597adfef63abdc7af531efeb12
parent8cfdfc181bbaf6acd2b837579e90c4073ead24ac
parent7ad1c64e19ec48f85339625dc9fb2fa1f5d2f7cf
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>