]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: user - Fix size of netlink dump message
authorSteffen Klassert <steffen.klassert@secunet.com>
Thu, 29 Mar 2012 07:04:46 +0000 (09:04 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 29 Mar 2012 11:52:48 +0000 (19:52 +0800)
commitfa27766110b890a7c2c46c215f31c0e0d7a821f1
tree42f49976ca15418e512bc172e2b4b08c86b2008a
parent546a94da372f2050f48fba44fd76976b25436980
crypto: user - Fix size of netlink dump message

The default netlink message size limit might be exceeded when dumping a
lot of algorithms to userspace. As a result, not all of the instantiated
algorithms dumped to userspace. So calculate an upper bound on the message
size and call netlink_dump_start() with that value.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/crypto_user.c
include/linux/cryptouser.h