crypto: caam - add allocation failure handling in SPRINTFCAT macro
authorHoria Geanta <horia.geanta@freescale.com>
Fri, 18 Apr 2014 10:01:42 +0000 (13:01 +0300)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 9 Jun 2014 12:29:02 +0000 (13:29 +0100)
commit 27c5fb7a84242b66bf1e0b2fe6bf40d19bcc5c04 upstream.

GFP_ATOMIC memory allocation could fail.
In this case, avoid NULL pointer dereference and notify user.

Cc: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Horia Geanta <horia.geanta@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>

No differences found