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)
commitab8e99d276d4b72d1532bda4423b14c9e2ce053c
treea0d932f01b664d964f06828504aadc0649bf70a5
parentc5b248dd051ee87e49307e576eb8d022722cf9a3
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