From: Sjur Brændeland Date: Mon, 11 Apr 2011 10:43:52 +0000 (+0000) Subject: caif: Add BUG_ON if dev_info is missing in packet X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=39b9afbb4c0750742eb61b7a015e12f483e0b4a3;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git caif: Add BUG_ON if dev_info is missing in packet Signed-off-by: Sjur Brændeland Signed-off-by: David S. Miller --- 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);