summaryrefslogtreecommitdiffstats
path: root/net/caif
diff options
context:
space:
mode:
authorSjur Brændeland <sjur.brandeland@stericsson.com>2011-04-11 10:43:52 +0000
committerDavid S. Miller <davem@davemloft.net>2011-04-11 15:08:48 -0700
commit39b9afbb4c0750742eb61b7a015e12f483e0b4a3 (patch)
tree9075eb0b21c5d98ad43a9e799e42375b7a5309a1 /net/caif
parent4dd820c088d201e526840c9dbc2f0b87a0a41868 (diff)
downloadblackbird-obmc-linux-39b9afbb4c0750742eb61b7a015e12f483e0b4a3.tar.gz
blackbird-obmc-linux-39b9afbb4c0750742eb61b7a015e12f483e0b4a3.zip
caif: Add BUG_ON if dev_info is missing in packet
Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/caif')
-rw-r--r--net/caif/cfmuxl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/caif/cfmuxl.c b/net/caif/cfmuxl.c
index ebfda2c9290b..fc2497468571 100644
--- a/net/caif/cfmuxl.c
+++ b/net/caif/cfmuxl.c
@@ -188,7 +188,8 @@ static int cfmuxl_transmit(struct cflayer *layr, struct cfpkt *pkt)
u8 linkid;
struct cflayer *dn;
struct caif_payload_info *info = cfpkt_info(pkt);
- dn = get_dn(muxl, cfpkt_info(pkt)->dev_info);
+ BUG_ON(!info);
+ dn = get_dn(muxl, info->dev_info);
if (dn == NULL) {
pr_warn("Send data on unknown phy ID = %d (0x%x)\n",
info->dev_info->id, info->dev_info->id);
OpenPOWER on IntegriCloud