diff options
-rw-r--r-- | drivers/md/dm-snap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-snap.c b/drivers/md/dm-snap.c index 1d0fafda0f76..7c14867b5903 100644 --- a/drivers/md/dm-snap.c +++ b/drivers/md/dm-snap.c | |||
@@ -1034,7 +1034,7 @@ static int __origin_write(struct list_head *snapshots, struct bio *bio) | |||
1034 | 1034 | ||
1035 | pe = __find_pending_exception(snap, bio); | 1035 | pe = __find_pending_exception(snap, bio); |
1036 | if (!pe) { | 1036 | if (!pe) { |
1037 | __invalidate_snapshot(snap, pe, ENOMEM); | 1037 | __invalidate_snapshot(snap, pe, -ENOMEM); |
1038 | goto next_snapshot; | 1038 | goto next_snapshot; |
1039 | } | 1039 | } |
1040 | 1040 | ||