dm crypt: fix error return code in crypt_ctr()

Fix to return error code -ENOMEM from the mempool_create_kmalloc_pool()
error handling case instead of 0, as done elsewhere in this function.

Fixes: ef43aa38063a6 ("dm crypt: add cryptographic data integrity protection (authenticated encryption)")
Cc: stable@vger.kernel.org # 4.12+
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>

authored by Wei Yongjun and committed by Mike Snitzer 3cc2e57c dc94902b

+1
+1
drivers/md/dm-crypt.c
··· 2746 2746 cc->tag_pool_max_sectors * cc->on_disk_tag_size); 2747 2747 if (!cc->tag_pool) { 2748 2748 ti->error = "Cannot allocate integrity tags mempool"; 2749 + ret = -ENOMEM; 2749 2750 goto bad; 2750 2751 } 2751 2752