util.c: use correct range for minor numbers when finding free device.
authorNeilBrown <neilb@suse.de>
Mon, 6 Apr 2009 05:50:56 +0000 (15:50 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 6 Apr 2009 05:50:56 +0000 (15:50 +1000)
commita56fb7ec54a1cde199377945e53553e2a39fa509
tree7a0f488df0263379a6a1ba07c5e92ed4a7df643b
parentea17e7aa302355b52247a017ed388fc51317008e
util.c: use correct range for minor numbers when finding free device.

Minor numbers are 20 bits, not 22.
So when looking for a free, high minor number, try (1<<20)-1,
not (1<<22)-1.
util.c