Skip to contentSkip to conversation

dm snapshot: fix invalidation ENOMEM

PATCH In review Alasdair G Kergon 1 participant 1 message Sep 14, 2006 Device mapper

lore
Share & tools
lore

Alasdair G Kergon

author maintainer
#0 lore raw

PATCH 2/25 dm snapshot: fix invalidation ENOMEM

From: Milan Broz <[email protected]>

Fix ENOMEM error sign.

drivers/md/dm-snap.c +1 -1
Index: linux-2.6.18-rc7/drivers/md/dm-snap.c
===================================================================
@@ -1034,7 +1034,7 @@ static int __origin_write(struct list_he
 
 		pe = __find_pending_exception(snap, bio);
 		if (!pe) {
-			__invalidate_snapshot(snap, pe, ENOMEM);
+			__invalidate_snapshot(snap, pe, -ENOMEM);
 			goto next_snapshot;
 		}