Files
linux/drivers
Gustavo A. R. Silva 0fdb739af2 mailbox: xgene-slimpro: Fix potential NULL pointer dereference
commit 3512a18cbd upstream.

There is a potential execution path in which function
platform_get_resource() returns NULL. If this happens,
we will end up having a NULL pointer dereference.

Fix this by replacing devm_ioremap with devm_ioremap_resource,
which has the NULL check and the memory region request.

This code was detected with the help of Coccinelle.

Cc: stable@vger.kernel.org
Fixes: f700e84f41 ("mailbox: Add support for APM X-Gene platform mailbox driver")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-09 20:01:19 +02:00
..
2018-07-22 14:27:36 +02:00
2018-06-16 09:52:33 +02:00
2018-02-25 11:05:55 +01:00
2018-08-22 07:47:14 +02:00
2017-09-09 17:39:41 +02:00
2018-09-05 09:20:05 +02:00
2018-08-24 13:12:32 +02:00
2016-09-20 20:57:12 +10:00
2018-07-25 11:24:01 +02:00