]> 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)
commit895d51344f67034e711ba34d53fd9654080c0877
treeaded95c52a9545597adfef63abdc7af531efeb12
parent13818332161f6f21df624e128aa89f5324923ced
parentb695e6a0ea79766ef3ae0ebcad25a37030442c23
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>