From: Stephan Mueller Date: Thu, 31 Jul 2014 19:47:33 +0000 (+0200) Subject: crypto: drbg - fix failure of generating multiple of 2**16 bytes X-Git-Tag: cleanup-for-v3.18~153^2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce5481d01f67ad304908ec2113515440c0fa86eb;p=pandora-kernel.git crypto: drbg - fix failure of generating multiple of 2**16 bytes The function drbg_generate_long slices the request into 2**16 byte or smaller chunks. However, the loop, however invokes the random number generation function with zero bytes when the request size is a multiple of 2**16 bytes. The fix prevents zero bytes requests. Signed-off-by: Stephan Mueller Signed-off-by: Herbert Xu --- Reading git-diff-tree failed