From: Hubert Kario <kario@wit.edu.pl>
To: linux-btrfs@vger.kernel.org
Subject: [PATCH 2/2] fix reporting of status for degraded arrays
Date: Tue, 21 Feb 2012 00:27:46 +0100 [thread overview]
Message-ID: <1329780466-4175-1-git-send-email-kario@wit.edu.pl> (raw)
Signed-off-by: Hubert Kario <kario@wit.edu.pl>
---
scrub.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/scrub.c b/scrub.c
index 9dca5f6..630a1bf 100644
--- a/scrub.c
+++ b/scrub.c
@@ -1010,7 +1010,7 @@ static int scrub_fs_info(int fd, char *path,
if (!fi_args->num_devices)
return 0;
- di_args = *di_ret = malloc(fi_args->num_devices * sizeof(*di_args));
+ di_args = *di_ret = calloc(fi_args->num_devices, sizeof(*di_args));
if (!di_args)
return -errno;
--
1.7.9
next reply other threads:[~2012-02-20 23:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-20 23:27 Hubert Kario [this message]
2012-02-20 23:50 ` [PATCH 2/2] fix reporting of status for degraded arrays Hubert Kario
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1329780466-4175-1-git-send-email-kario@wit.edu.pl \
--to=kario@wit.edu.pl \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).