spi: pl022: Add missing error check for devm_kzalloc
authorKiran Padwal <kiran.padwal@smartplayin.com>
Thu, 18 Sep 2014 07:27:47 +0000 (12:57 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 18 Sep 2014 18:14:16 +0000 (11:14 -0700)
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>

No differences found