Skip to content
Commit 1f8de849 authored by Peter Griffin's avatar Peter Griffin Committed by Kishon Vijay Abraham I
Browse files

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: default avatarPeter Griffin <peter.griffin@linaro.org>
Acked-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
parent 437a6bc4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment