]> git.karo-electronics.de Git - linux-beck.git/blobdiff - drivers/net/ppp/ppp_generic.c
Merge tag 'samsung-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene...
[linux-beck.git] / drivers / net / ppp / ppp_generic.c
index 80e6f3430f65e96dfe3e3b8b13d694f727f330cc..68c3a3f4e0abe54910923aca8aa64286366e131a 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