HomeFreeBSD

linuxkpi: Do not leak pages on put.

Description

linuxkpi: Do not leak pages on put.

When the owner of the wire reference releases the last reference, it
might be that the page was already attempted to be freed (but free
cannot be performed at that time due to wire). Check that the page
was removed from the object as the indicator of the free attempt and
finish the free operation if so.

Reported and tested by: Slava Shwartsman
Reviewed by: hselasky
Sponsored by: Mellanox Technologies
MFC after: 1 week

Details

Provenance
kibAuthored on
Reviewer
hselasky
Parents
rS329215: Do not leak rv->psind in some specific situations.
Branches
Unknown
Tags
Unknown