Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1713690

Re: crypto: ccp: use dma_mapping_error to check map error

From Herbert Xu <herbert@gondor.apana.org.au>
Newsgroups linux.kernel
Subject Re: crypto: ccp: use dma_mapping_error to check map error
Date 2017-08-17 11:10 +0200
Message-ID <ufoYq-2Kf-37@gated-at.bofh.it> (permalink)
References <ucd3t-De-29@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Aug 08, 2017 at 09:42:47PM +0800, Pan Bian wrote:
> The return value of dma_map_single() should be checked by
> dma_mapping_error(). However, in function ccp_init_dm_workarea(), its
> return value is checked against NULL, which could result in failures.
> 
> Signed-off-by: Pan Bian <bianpan2016@163.com>

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

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: crypto: ccp: use dma_mapping_error to check map error Herbert Xu <herbert@gondor.apana.org.au> - 2017-08-17 11:10 +0200

csiph-web