]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 28 Apr 2014 10:17:18 +0000 (18:17 +0800)
commit27c5fb7a84242b66bf1e0b2fe6bf40d19bcc5c04
treeeece880987ed5b35e9ffbbe089d86671d188701c
parenteb4a5346e777784f1b5ae9fd0c29b96344bdc3ae
crypto: caam - add allocation failure handling in SPRINTFCAT macro

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

Cc: <stable@vger.kernel.org> # 3.2+
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>
drivers/crypto/caam/error.c