NVMe: fix error return code in nvme_submit_bio_queue()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 13 May 2013 14:29:04 +0000 (22:29 +0800)
committerMatthew Wilcox <matthew.r.wilcox@intel.com>
Fri, 17 May 2013 13:13:18 +0000 (09:13 -0400)
commit1287dabd345f447bbe0f7a99fc95ab89bcfc0f5d
treec28b898aa3296ab653403ae275f53151b66abb9f
parent5460fc03105fbed01fe27aa572d9f65bb410a61d
NVMe: fix error return code in nvme_submit_bio_queue()

nvme_submit_flush_data() might overwrite the initialisation of the
return value with 0, so move the -ENOMEM setting close to the usage.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
drivers/block/nvme-core.c