]> git.baikalelectronics.ru Git - kernel.git/commit
net: cpsw: check for cpts pointer after its allocation
authorSebastian Siewior <bigeasy@linutronix.de>
Mon, 17 Jun 2013 17:31:52 +0000 (19:31 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Jun 2013 23:26:07 +0000 (16:26 -0700)
commit4d7801bcc1bacabe90eae6775d3a51e606d70b78
treea0d932f01b664d964f06828504aadc0649bf70a5
parent3c161240e367418847203d4e55b977f24329151a
net: cpsw: check for cpts pointer after its allocation

after priv->cpts got allocated then this pointer should check to determine
if the allocation succeeded or not.

Cc: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c