dm snapshot: fix error return code in snapshot_ctr
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 10 May 2013 13:37:15 +0000 (14:37 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 10 May 2013 13:37:15 +0000 (14:37 +0100)
commit09e8b813897a0f85bb401435d009228644c81214
tree4ce61c46f1db01c6f15b34e15657606bacacd63c
parentfa4d683af3693863bec761e2761a07e4c1351f86
dm snapshot: fix error return code in snapshot_ctr

Return -ENOMEM instead of success if unable to allocate pending
exception mempool in snapshot_ctr.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Cc: stable@vger.kernel.org
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-snap.c