From: Akinobu Mita Date: Wed, 11 Oct 2006 12:29:51 +0000 (+1000) Subject: [CRYPTO] api: fix crypto_alloc_base() return value X-Git-Tag: v2.6.19-rc3~42^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9765d262b8230b735c4b2815b041c09a00833cf1;p=pandora-kernel.git [CRYPTO] api: fix crypto_alloc_base() return value This patch makes crypto_alloc_base() return proper return value. - If kzalloc() failure happens within __crypto_alloc_tfm(), crypto_alloc_base() returns NULL. But crypto_alloc_base() is supposed to return error code as pointer. So this patch makes it return -ENOMEM in that case. - crypto_alloc_base() is suppose to return -EINTR, if it is interrupted by signal. But it may not return -EINTR. Signed-off-by: Akinobu Mita Signed-off-by: Herbert Xu --- Reading git-diff-tree failed