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)
commitfd92c77f58257ae5eb5180afe36e86094e4910f6
treeb9e34251ffc071b54c7d6407694bf396863c302f
parent543c09c89fdc007c2990aa9d2abcc62e0dfa1311
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