drivers/net: macvtap and tun depend on INET
[cascardo/linux.git] / drivers / net / ppp / ppp_generic.c
index 80e6f34..68c3a3f 100644 (file)
@@ -594,7 +594,7 @@ static long ppp_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
                        if (file == ppp->owner)
                                ppp_shutdown_interface(ppp);
                }
-               if (atomic_long_read(&file->f_count) <= 2) {
+               if (atomic_long_read(&file->f_count) < 2) {
                        ppp_release(NULL, file);
                        err = 0;
                } else