commit | 55348b420e618b1c5c50106261437fe948ef2132 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Wed Jan 23 10:15:05 2013 -0700 |
committer | Jens Axboe <axboe@kernel.dk> | Wed Jan 23 10:15:05 2013 -0700 |
tree | fb679bac054bdfecb80c4bf0c992dd9cf537ff2e | |
parent | bcd5abfa9f230bbe4365dad1289fdea1f5509f74 [diff] |
axmap: fix bug in axmap_find_first_free() If the map is completely full, we could return an invalid value for the first free bit. So check if we actually found a match, return failure if we didn't. Signed-off-by: Jens Axboe <axboe@kernel.dk>