Home
last modified time | relevance | path

Searched hist:"73 e3f1eb51888303389f2dc2219c97ce34ca6db0" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/spi/
H A Dspi-pl022.cdiff 73e3f1eb51888303389f2dc2219c97ce34ca6db0 Thu Sep 18 02:27:47 CDT 2014 Kiran Padwal <kiran.padwal@smartplayin.com> spi: pl022: Add missing error check for devm_kzalloc

Currently this driver is missing a check on the return value of devm_kzalloc,
which would cause a NULL pointer dereference in a OOM situation.

This patch adds a missing check.

Signed-off-by: Kiran Padwal <kiran.padwal@smartplayin.com>
Signed-off-by: Mark Brown <broonie@kernel.org>