lightnvm: initialize ppa_addr in dev_to_generic_addr()
authorJavier González <javier@cnexlabs.com>
Thu, 7 Jul 2016 07:54:09 +0000 (09:54 +0200)
committerJens Axboe <axboe@fb.com>
Thu, 7 Jul 2016 14:51:52 +0000 (08:51 -0600)
commit5389a1dfb39786df08d4f6a482bd2734b1b50e33
treeeedb421c20a8d3a10be7470e9ba3d9cd8d7b6b0d
parent529435e8188674fa1071235f50e6fbbbe020c93f
lightnvm: initialize ppa_addr in dev_to_generic_addr()

The ->reserved bit is not initialized when allocated on stack.
This may lead targets to misinterpret the PPA as cached.

Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
include/linux/lightnvm.h