aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/drivers/cow_user.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/drivers/cow_user.c')
-rw-r--r--arch/um/drivers/cow_user.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/um/drivers/cow_user.c b/arch/um/drivers/cow_user.c
index d1c86bc377bd..61951b721268 100644
--- a/arch/um/drivers/cow_user.c
+++ b/arch/um/drivers/cow_user.c
@@ -362,7 +362,8 @@ int init_cow_file(int fd, char *cow_file, char *backing_file, int sectorsize,
362 if(err != sizeof(zero)){ 362 if(err != sizeof(zero)){
363 cow_printf("Write of bitmap to new COW file '%s' failed, " 363 cow_printf("Write of bitmap to new COW file '%s' failed, "
364 "err = %d\n", cow_file, -err); 364 "err = %d\n", cow_file, -err);
365 err = -EINVAL; 365 if (err >= 0)
366 err = -EINVAL;
366 goto out; 367 goto out;
367 } 368 }
368 369