summaryrefslogtreecommitdiffstats
path: root/daemon/md.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/md.c')
-rw-r--r--daemon/md.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/daemon/md.c b/daemon/md.c
index 78e84f3e..265f4f4c 100644
--- a/daemon/md.c
+++ b/daemon/md.c
@@ -253,10 +253,8 @@ do_md_detail(const char *md)
/* Split the command output into lines */
lines = split_lines (out);
- if (lines == NULL) {
- reply_with_perror ("malloc");
+ if (lines == NULL)
goto error;
- }
/* Parse the output of mdadm -D --export:
* MD_LEVEL=raid1