Skip to content

Commit

Permalink
caif: Add BUG_ON if dev_info is missing in packet
Browse files Browse the repository at this point in the history
Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Sjur Brændeland authored and David S. Miller committed Apr 11, 2011
1 parent 4dd820c commit 39b9afb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/caif/cfmuxl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 39b9afb

Please sign in to comment.