From: Peter Griffin Date: Fri, 15 Aug 2014 12:40:09 +0000 (+0100) Subject: phy: phy-mvebu-sata: Add missing error check for devm_kzalloc X-Git-Tag: fixes-for-v3.18-merge-window~16^2~19^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f8de849cf8399ff287bab560d04df4515ec73c0;p=pandora-kernel.git 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 Acked-by: Andrew Lunn Signed-off-by: Kishon Vijay Abraham I --- Reading git-diff-tree failed