projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4dd820c
)
caif: Add BUG_ON if dev_info is missing in packet
author
Sjur Brændeland
<sjur.brandeland@stericsson.com>
Mon, 11 Apr 2011 10:43:52 +0000
(10:43 +0000)
committer
David S. Miller
<davem@davemloft.net>
Mon, 11 Apr 2011 22:08:48 +0000
(15:08 -0700)
Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/caif/cfmuxl.c
patch
|
blob
|
blame
|
history
diff --git
a/net/caif/cfmuxl.c
b/net/caif/cfmuxl.c
index ebfda2c9290ba1a4e38c13b4ffd59f302cc50dba..fc249746857189d416dbda4dec1ed091b39b78a0 100644
(file)
--- 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);