summaryrefslogtreecommitdiffstats
path: root/drivers/lightnvm/gennvm.c
diff options
context:
space:
mode:
authorMatias Bjørling <m@bjorling.me>2015-11-16 15:34:36 +0100
committerJens Axboe <axboe@fb.com>2015-11-16 15:20:23 -0700
commitaedf17f4515b12ba1cd73298e66baa69cf93010e (patch)
tree82828c031541e61743153522a7cb35f74579cbf1 /drivers/lightnvm/gennvm.c
parent4ead1a25ce436f73501d6358450f3ba0c1cb2ce3 (diff)
downloadblackbird-op-linux-aedf17f4515b12ba1cd73298e66baa69cf93010e.tar.gz
blackbird-op-linux-aedf17f4515b12ba1cd73298e66baa69cf93010e.zip
lightnvm: change max_phys_sect to uint
The max_phys_sect variable is defined as a char. We do a boundary check to maximally allow 256 physical page descriptors per command. As we are not indexing from zero. This expression is always false. Bump the max_phys_sect to an unsigned int to support the range check. Signed-off-by: Matias Bjørling <m@bjorling.me> Reported-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/lightnvm/gennvm.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud