]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: add check after mempool allocation
authorJavier Gonzalez <javier@javigon.com>
Tue, 12 Jan 2016 06:49:17 +0000 (07:49 +0100)
committerJens Axboe <axboe@fb.com>
Tue, 12 Jan 2016 15:21:16 +0000 (08:21 -0700)
commit79345cf56593d81f533904656cf48bbb1a9b9ec9
treed42026273ff620c22cd85e18e07069f05578c4a7
parent9cd130145b28ecc4f018086b696aaaf40bb047a4
lightnvm: add check after mempool allocation

The mempool allocation might fail. Make sure to return error when it
does, instead of causing a kernel panic.

Signed-off-by: Javier Gonzalez <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/rrpc.c