]> git.baikalelectronics.ru Git - kernel.git/commitdiff
Merge branch 'guilt/xfs-5.19-recovery-buf-cancel' into xfs-5.19-for-next
authorDave Chinner <david@fromorbit.com>
Mon, 30 May 2022 00:58:13 +0000 (10:58 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 30 May 2022 00:58:13 +0000 (10:58 +1000)
As part of solving the memory leaks and UAF problems in the new LARP
code, kmemleak also reported that log recovery will leak the table
used to hash buffer cancellations if the recovery fails.  Fix this
problem by creating alloc/free helpers that initialize and free the
hashtable contents correctly.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Dave Chinner <david@fromorbit.com>

Trivial merge