]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: fix up nonsensical configure overrun checking
authorAlan <gnomes@lxorguk.ukuu.org.uk>
Fri, 19 Feb 2016 12:56:57 +0000 (13:56 +0100)
committerJens Axboe <axboe@fb.com>
Thu, 3 Mar 2016 21:45:53 +0000 (14:45 -0700)
commit3dddd384b2a6acf47d20608a0a7120b94b3a90ac
tree9c034345eb0b5830cb43e64e6a6fab762a9a50c1
parent58fe101c1bdf0e5cbbef4e10fa8ab59177c9f338
lightnvm: fix up nonsensical configure overrun checking

Instead of checking a constant 0 actually check the space available. Even
better remember to allow for the header and also check the right amount of
space is needed.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/core.c