]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/super.c
ARM: mvebu: fix description of pwr-sata0 regulator on Armada 388 GP
[karo-tx-linux.git] / fs / super.c
index 928c20f47af9c1e26906e7e3be7dfa7705e8ca15..b61372354f2bd1cd104d140003859a4333456c79 100644 (file)
@@ -842,7 +842,7 @@ int get_anon_bdev(dev_t *p)
        else if (error)
                return -EAGAIN;
 
-       if (dev == (1 << MINORBITS)) {
+       if (dev >= (1 << MINORBITS)) {
                spin_lock(&unnamed_dev_lock);
                ida_remove(&unnamed_dev_ida, dev);
                if (unnamed_dev_start > dev)