commit | 1f8de849cf8399ff287bab560d04df4515ec73c0 | [log] [tgz] |
---|---|---|
author | Peter Griffin <peter.griffin@linaro.org> | Fri Aug 15 13:40:09 2014 +0100 |
committer | Kishon Vijay Abraham I <kishon@ti.com> | Wed Sep 24 15:18:31 2014 +0530 |
tree | 8400cf883a301832560187933eade98faa8a1e58 | |
parent | 437a6bc478e6530efad9aeb04b84b2f5c4e356d5 [diff] |
phy: phy-mvebu-sata: 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 the aformentioned missing check. Signed-off-by: Peter Griffin <peter.griffin@linaro.org> Acked-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>