lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 12 Jul 2011 17:50:32 -0700
From:	Muthu Kumar <muthu.lkml@...il.com>
To:	neilb@...e.de, linux-kernel@...r.kernel.org
Subject: [PATCH]:drivers/md/raid10.c: r10buf_pool_alloc(): Set bi_vcnt for the
 new bio.

Hi Neil,
raid10.c: r10buf_pool_alloc() - doesn't set the bi_vcnt for the newly
allocated bio. Setting it to RESYNC_PAGES for successful case.

BTW, why are we not using bio_add_page() here to add the page to bio?

Signed-off-by: Muthukumar R <muthur@...il.com>

------
 drivers/md/raid10.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
------
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c
index 6e84668..8504c5b 100644
--- a/drivers/md/raid10.c
+++ b/drivers/md/raid10.c
@@ -129,6 +129,7 @@ static void * r10buf_pool_alloc(gfp_t gfp_flags, void *data)

                        bio->bi_io_vec[i].bv_page = page;
                }
+               bio->bi_vcnt = RESYNC_PAGES;
        }

        return r10_bio;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ