linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/2] fix reporting of status for degraded arrays
@ 2012-02-20 23:27 Hubert Kario
  2012-02-20 23:50 ` Hubert Kario
  0 siblings, 1 reply; 2+ messages in thread
From: Hubert Kario @ 2012-02-20 23:27 UTC (permalink / raw)
  To: linux-btrfs

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-02-20 23:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-20 23:27 [PATCH 2/2] fix reporting of status for degraded arrays Hubert Kario
2012-02-20 23:50 ` Hubert Kario

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).