aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid10.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/raid10.c')
-rw-r--r--drivers/md/raid10.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c
index 8f5543a62416..6709cb255200 100644
--- a/drivers/md/raid10.c
+++ b/drivers/md/raid10.c
@@ -120,7 +120,7 @@ static void * r10buf_pool_alloc(gfp_t gfp_flags, void *data)
120 * Allocate bios. 120 * Allocate bios.
121 */ 121 */
122 for (j = nalloc ; j-- ; ) { 122 for (j = nalloc ; j-- ; ) {
123 bio = bio_alloc(gfp_flags, RESYNC_PAGES); 123 bio = bio_kmalloc(gfp_flags, RESYNC_PAGES);
124 if (!bio) 124 if (!bio)
125 goto out_free_bio; 125 goto out_free_bio;
126 r10_bio->devs[j].bio = bio; 126 r10_bio->devs[j].bio = bio;