]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: af_alg - get_page upon reassignment to TX SGL
authorStephan Mueller <smueller@chronox.de>
Thu, 10 Aug 2017 14:40:03 +0000 (16:40 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 22 Aug 2017 07:03:27 +0000 (15:03 +0800)
commite65c92811b3b7d75e6448771e83a231dc82d69bf
treeeccc3beb0adf527562a4ea61d5aafccea919c24a
parent97db3b2f2406f4f9d4a6d38a5d23564e11aa6130
crypto: af_alg - get_page upon reassignment to TX SGL

When a page is assigned to a TX SGL, call get_page to increment the
reference counter. It is possible that one page is referenced in
multiple SGLs:

- in the global TX SGL in case a previous af_alg_pull_tsgl only
reassigned parts of a page to a per-request TX SGL

- in the per-request TX SGL as assigned by af_alg_pull_tsgl

Note, multiple requests can be active at the same time whose TX SGLs all
point to different parts of the same page.

Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/af_alg.c