lkml.org 
[lkml]   [2019]   [Nov]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH][next] crypto: amlogic: ensure error variable err is set before returning it
    On Tue, Oct 29, 2019 at 11:32:30AM +0000, Colin King wrote:
    > From: Colin Ian King <colin.king@canonical.com>
    >
    > Currently when the call to crypto_engine_alloc_init fails the error
    > return path returns an uninitialized value in the variable err. Fix
    > this by setting err to -ENOMEM.
    >
    > Addresses-Coverity: ("Uninitialized scalar variable")
    > Fixes: 48fe583fe541 ("crypto: amlogic - Add crypto accelerator for amlogic GXL")
    > Signed-off-by: Colin Ian King <colin.king@canonical.com>
    > ---
    > drivers/crypto/amlogic/amlogic-gxl-core.c | 1 +
    > 1 file changed, 1 insertion(+)

    Patch applied. Thanks.
    --
    Email: Herbert Xu <herbert@gondor.apana.org.au>
    Home Page: http://gondor.apana.org.au/~herbert/
    PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

    \
     
     \ /
      Last update: 2019-11-08 16:13    [W:3.178 / U:0.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site