DEVFS - Fix bug in devfs_clone_bitmap_set() (xor -> &= ~)
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 5 Aug 2009 19:34:06 +0000 (12:34 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 5 Aug 2009 19:34:06 +0000 (12:34 -0700)
sys/vfs/devfs/devfs_helper.c

index 48eac48..4fe03b2 100644 (file)
@@ -185,7 +185,7 @@ devfs_clone_bitmap_set(struct devfs_bitmap *bitmap, int unit)
                devfs_clone_bitmap_resize(bitmap, chunk);
        }
 
-       bitmap->bitmap[chunk] ^= (1<<unit);
+       bitmap->bitmap[chunk] &= ~(1<<unit);
 }