Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git]
/
kernel
/
net
/
atm
/
clip.c
diff --git
a/kernel/net/atm/clip.c
b/kernel/net/atm/clip.c
index
17e55df
..
e07f551
100644
(file)
--- a/
kernel/net/atm/clip.c
+++ b/
kernel/net/atm/clip.c
@@
-317,6
+317,9
@@
static int clip_constructor(struct neighbour *neigh)
static int clip_encap(struct atm_vcc *vcc, int mode)
{
+ if (!CLIP_VCC(vcc))
+ return -EBADFD;
+
CLIP_VCC(vcc)->encap = mode;
return 0;
}