X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=crypto%2Fcryptomgr.c;h=e5e3cf848d425ad0c3fa8584e323b51d9135221b;hb=e242297055f906e8e225fb95a8edbc88e9052634;hp=c83884fec5f928fd8e75bf8a82205411c4004dff;hpb=39e1ee011f42dbbcb0210c73ea728ae54cf63b06;p=linux-2.6 diff --git a/crypto/cryptomgr.c b/crypto/cryptomgr.c index c83884fec5..e5e3cf848d 100644 --- a/crypto/cryptomgr.c +++ b/crypto/cryptomgr.c @@ -129,6 +129,7 @@ static int cryptomgr_schedule_probe(struct crypto_larval *larval) } notnum = 1; + p++; } len = p - name; @@ -151,7 +152,7 @@ static int cryptomgr_schedule_probe(struct crypto_larval *larval) param->tb[i + 1] = ¶m->attrs[i].attr; i++; - if (WARN_ON(i >= CRYPTO_MAX_ATTRS)) + if (i >= CRYPTO_MAX_ATTRS) goto err_free_param; if (*p == ')')