l2tp: hold tunnel socket when handling control frames in l2tp_ip and l2tp_ip6
[pandora-kernel.git] / net / caif / cfctrl.c
index 5cf5222..84efbe4 100644 (file)
@@ -288,9 +288,10 @@ int cfctrl_linkup_request(struct cflayer *layer,
 
                count = cfctrl_cancel_req(&cfctrl->serv.layer,
                                                user_layer);
-               if (count != 1)
+               if (count != 1) {
                        pr_err("Could not remove request (%d)", count);
                        return -ENODEV;
+               }
        }
        return 0;
 }