diff options
Diffstat (limited to 'kernel/net/atm/clip.c')
-rw-r--r-- | kernel/net/atm/clip.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/net/atm/clip.c b/kernel/net/atm/clip.c index 17e55dfec..e07f551a8 100644 --- 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; } |