lkml.org 
[lkml]   [2013]   [Dec]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[PATCH 3.2 126/185] crypto: scatterwalk - Use sg_chain_ptr on chain entries
    3.2.54-rc1 review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Tom Lendacky <thomas.lendacky@amd.com>

    commit 389a5390583a18e45bc4abd4439291abec5e7a63 upstream.

    Now that scatterwalk_sg_chain sets the chain pointer bit the sg_page
    call in scatterwalk_sg_next hits a BUG_ON when CONFIG_DEBUG_SG is
    enabled. Use sg_chain_ptr instead of sg_page on a chain entry.

    Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
    Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
    Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
    ---
    include/crypto/scatterwalk.h | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/include/crypto/scatterwalk.h
    +++ b/include/crypto/scatterwalk.h
    @@ -66,7 +66,7 @@ static inline struct scatterlist *scatte
    if (sg_is_last(sg))
    return NULL;

    - return (++sg)->length ? sg : (void *)sg_page(sg);
    + return (++sg)->length ? sg : sg_chain_ptr(sg);
    }

    static inline void scatterwalk_crypto_chain(struct scatterlist *head,


    \
     
     \ /
      Last update: 2013-12-29 04:41    [W:5.819 / U:0.040 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site