]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: check return value of init_srcu_struct function
authorMax Gurtovoy <maxg@mellanox.com>
Thu, 12 Apr 2018 15:16:12 +0000 (09:16 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 12 Apr 2018 15:58:27 +0000 (09:58 -0600)
commit8376a726303e49f5e379c5d860a71bf6ddd1d6a4
treeb9e34251ffc071b54c7d6407694bf396863c302f
parenta944ec4a458bbe6245136010653bbc2e6cde663a
nvme: check return value of init_srcu_struct function

Also add error flow in case srcu initialization function fails.

Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/core.c