* [PATCH] Btrfs-progs: bugfix: bail out when check_mounted_where returns an error
@ 2011-07-07 16:19 Jan Schmidt
0 siblings, 0 replies; only message in thread
From: Jan Schmidt @ 2011-07-07 16:19 UTC (permalink / raw)
To: chris.mason, linux-btrfs
Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
---
scrub.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/scrub.c b/scrub.c
index 22052ed..8270431 100644
--- a/scrub.c
+++ b/scrub.c
@@ -942,6 +942,8 @@ static int scrub_fs_info(int fd, char *path,
&fs_devices_mnt);
if (!ret)
return -EINVAL;
+ if (ret < 0)
+ return ret;
fi_args->num_devices = 1;
fi_args->max_id = fs_devices_mnt->latest_devid;
i = fs_devices_mnt->latest_devid;
--
1.7.3.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-07-07 16:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-07 16:19 [PATCH] Btrfs-progs: bugfix: bail out when check_mounted_where returns an error Jan Schmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).