Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.25.3-rc1 /crypto/cryptd.c

Filename:/crypto/cryptd.c
Lines Added:3
Lines Deleted:1
Also changed in: (Previous) 2.6.25-git20  2.6.25-git19  2.6.25-git18  2.6.25  2.6.25-rc9  2.6.25-rc8 
(Following) 2.6.25.3  2.6.25.4  2.6.25.5  2.6.25.6  2.6.25.7  2.6.25.8 

Location
[  2.6.25.3-rc1
  [  crypto
     o  cryptd.c

Patch

diff --git a/crypto/cryptd.c b/crypto/cryptd.c
index 2504252..b150de5 100644
--- a/crypto/cryptd.c
+++ b/crypto/cryptd.c
@@ -190,8 +190,10 @@ static struct crypto_instance *cryptd_alloc_instance(struct crypto_alg *alg,
    int err;
 
    inst = kzalloc(sizeof(*inst) + sizeof(*ctx), GFP_KERNEL);
-   if (IS_ERR(inst))
+   if (!inst) {
+      inst = ERR_PTR(-ENOMEM);
       goto out;
+   }
 
    err = -ENAMETOOLONG;
    if (snprintf(inst->alg.cra_driver_name, CRYPTO_MAX_ALG_NAME,


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.