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)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 18 Apr 2012 12:59:03 +0000 (17:59 +0530)
commit08814e4abc7311e72fe16e70d854c79abc66f2e6
tree3960dde671c0cfa9b5031f71f8b45fd271596b9a
parent509a1a54f5ee2d5284f3fac3a13d675218f5e9b3
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