parser: always match the correct option length for posval options
authorJens Axboe <axboe@kernel.dk>
Thu, 6 Dec 2012 16:34:57 +0000 (17:34 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 6 Dec 2012 16:34:57 +0000 (17:34 +0100)
commit119cd939010b646825d06ac04af41dc5268f2765
tree252051af010c681f7a25128f4f5b5643e14c478e
parent595e17349ca6b5cb8562689a12c0cc0b551c35da
parser: always match the correct option length for posval options

Right now we match rw=randr as rw=randrw, since we use the length
of the passed in option. Use a correct max of the ival and string
passed in, so that we fail if a full match isn't present.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
parse.c