Hubert Kario
2012-Feb-20 23:27 UTC
[PATCH 2/2] fix reporting of status for degraded arrays
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 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Hubert Kario
2012-Feb-20 23:50 UTC
Re: [PATCH 2/2] fix reporting of status for degraded arrays
Sorry for the subject, this a single patch, not in a series. Hubert Kario -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html