]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8b0d94739c498177963149f57f8633ccc8335372
tree4ce61c46f1db01c6f15b34e15657606bacacd63c
parent8a6830dcd3d9e10aeeb6da6fb9d0e508a6b57e0c
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