projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b04367d
)
caif: Fix function NULL pointer check.
author
Sjur Braendeland
<sjur.brandeland@stericsson.com>
Tue, 21 Sep 2010 11:44:45 +0000
(11:44 +0000)
committer
David S. Miller
<davem@davemloft.net>
Wed, 22 Sep 2010 01:05:31 +0000
(18:05 -0700)
Check that receive function pointer is not null before calling it.
Signed-off-by: Sjur Braendeland <sjur.brandeland@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/caif/caif_dev.c
patch
|
blob
|
blame
|
history
diff --git
a/net/caif/caif_dev.c
b/net/caif/caif_dev.c
index 0fd01dd17c48c86339db4565a3b5b8c39a436b93..b99369a055d13df6414421a28cfaee5d000c6c72 100644
(file)
--- a/
net/caif/caif_dev.c
+++ b/
net/caif/caif_dev.c
@@
-173,7
+173,7
@@
static int receive(struct sk_buff *skb, struct net_device *dev,
net = dev_net(dev);
pkt = cfpkt_fromnative(CAIF_DIR_IN, skb);
caifd = caif_get(dev);
- if (!caifd || !caifd->layer.up || !caifd->layer.up->
ctrlcmd
)
+ if (!caifd || !caifd->layer.up || !caifd->layer.up->
receive
)
return NET_RX_DROP;
if (caifd->layer.up->receive(caifd->layer.up, pkt))