dm snapshot: fix invalidation ENOMEM
Alasdair G Kergon
maintainerPATCH 2/25 dm snapshot: fix invalidation ENOMEM
From: Milan Broz <[email protected]>
Fix ENOMEM error sign.
Signed-off-by Milan Broz <[email protected]>
Signed-off-by Alasdair G Kergon <[email protected]>
drivers/md/dm-snap.c +1 -1
@@ -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; }