[lkml]   [2006]   [Oct]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 1/2] crypto: fix crypto_alloc_{tfm,base}() return value
    On Mon, Oct 09, 2006 at 05:58:12PM +0900, Akinobu Mita wrote:
    > crypto_alloc_tfm() and crypto_alloc_base() are suppose to return error code
    > as pointer on failures. But there are some cases where they return NULL
    > (for example, crypto_alloc_tfm() returns NULL on kzalloc() failure)
    > This patch fixes that wrong return value, and also fixes tcrypt so that it can
    > detect error code correctly.

    Actually, crypto_alloc_tfm is an obsolete function which is supposed
    to maintain its previous semantics of returning NULL or success.

    I don't quite see where the problem with crypto_alloc_base is.

    Visit Openswan at
    Email: Herbert Xu ~{PmV>HI~} <>
    Home Page:
    PGP Key:
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2006-10-09 13:17    [W:0.019 / U:30.864 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site