Obscure file randommap fix
authorJens Axboe <jens.axboe@oracle.com>
Tue, 13 Mar 2007 13:16:08 +0000 (14:16 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 13 Mar 2007 13:16:08 +0000 (14:16 +0100)
commit5afa0d9b2e14194d34001a24007d96536608e651
tree7c4c7a24eef31e5fa52e0b7b3adf9d2c374cd9e8
parent9f9214f243701626a04b4a0f9aceec03b8b40e0f
Obscure file randommap fix

If file size < block and no size is given, we could be generating
a random offset within -1 and deref ->file_map[] beyond its size.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
io_u.c