On Mon, Mar 20, 2017 at 03:10:01PM +0530, Jitendra Bhivare wrote: > As part of blk_mq_realloc_hw_ctx(), if the init_hctx() ops is > failed by the underyling transport, the hctx pointer is freed and > initialized to NULL. > However, functions down the line, access this hwctx pointer without > a NULL pointer check, which could lead to a kernel crash. Shouldn't we fail initializing the queue if any of the hctx allocations fail?