]> git.baikalelectronics.ru Git - kernel.git/commit
bus: arm-ccn: Check memory allocation failure
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 27 Aug 2017 10:06:50 +0000 (11:06 +0100)
committerPawel Moll <pawel.moll@arm.com>
Mon, 4 Dec 2017 16:48:53 +0000 (16:48 +0000)
commit55d61dbf65e13a5896a72258635dbf74b6387b8f
tree9d39d3784b6324b6694f9c44ac1e37d71fae2707
parentcdd2ca38bb20e423ae80e7f0015a627f3fd8edee
bus: arm-ccn: Check memory allocation failure

Check memory allocation failures and return -ENOMEM in such cases

This avoids a potential NULL pointer dereference.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Scott Branden <scott.branden@broadcom.com>
Cc: stable@vger.kernel.org # 3.17+
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
drivers/bus/arm-ccn.c