[PATCH 2/9] phy: phy-mvebu-sata: Add missing error check for devm_kzalloc

2014-08-15 Thread Peter Griffin
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.grif...@linaro.org --- drivers/phy/phy-mvebu-sata.c | 2 ++ 1 file

Re: [PATCH 2/9] phy: phy-mvebu-sata: Add missing error check for devm_kzalloc

2014-08-15 Thread Andrew Lunn
On Fri, Aug 15, 2014 at 01:40:09PM +0100, Peter Griffin wrote: 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