We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 302251f commit b993ea4Copy full SHA for b993ea4
net/atm/clip.c
@@ -193,12 +193,6 @@ static void clip_push(struct atm_vcc *vcc, struct sk_buff *skb)
193
194
pr_debug("\n");
195
196
- if (!clip_devs) {
197
- atm_return(vcc, skb->truesize);
198
- kfree_skb(skb);
199
- return;
200
- }
201
-
202
if (!skb) {
203
pr_debug("removing VCC %p\n", clip_vcc);
204
if (clip_vcc->entry)
@@ -208,6 +202,11 @@ static void clip_push(struct atm_vcc *vcc, struct sk_buff *skb)
208
return;
209
}
210
atm_return(vcc, skb->truesize);
205
+ if (!clip_devs) {
206
+ kfree_skb(skb);
207
+ return;
+ }
+
211
skb->dev = clip_vcc->entry ? clip_vcc->entry->neigh->dev : clip_devs;
212
/* clip_vcc->entry == NULL if we don't have an IP address yet */
213
if (!skb->dev) {
0 commit comments