X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=crypto%2Fahash.c;h=3887856c2dd68490736eb17bca5d01eae9837aa0;hb=a481991467d38afb43c3921d5b5b59ccb61b04ba;hp=33bc9b62e9ae5dde4a977c00293efc2ca2998a71;hpb=820d41cf0cd0e94a5661e093821e2e5c6b36a9d8;p=cascardo%2Flinux.git diff --git a/crypto/ahash.c b/crypto/ahash.c index 33bc9b62e9ae..3887856c2dd6 100644 --- a/crypto/ahash.c +++ b/crypto/ahash.c @@ -409,9 +409,9 @@ static int crypto_ahash_report(struct sk_buff *skb, struct crypto_alg *alg) rhash.blocksize = alg->cra_blocksize; rhash.digestsize = __crypto_hash_alg_common(alg)->digestsize; - NLA_PUT(skb, CRYPTOCFGA_REPORT_HASH, - sizeof(struct crypto_report_hash), &rhash); - + if (nla_put(skb, CRYPTOCFGA_REPORT_HASH, + sizeof(struct crypto_report_hash), &rhash)) + goto nla_put_failure; return 0; nla_put_failure: