login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
November
»
23
Re: [PATCH] mmc: Add missing sg_init_table() call
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Jens Axboe <jens.axboe@...>
To: Haavard Skinnemoen <hskinnemoen@...>
Cc: Pierre Ossman <drzeus-mmc@...>, LKML <linux-kernel@...>
Subject:
Re: [PATCH] mmc: Add missing sg_init_table() call
Date: Friday, November 23, 2007 - 5:18 am
On Thu, Nov 22 2007, Haavard Skinnemoen wrote:
quoted text
> mmc_init_queue only initializes the scatterlists with sg_init_table() > when using a bounce buffer. This leads to a BUG() when CONFIG_DEBUG_SG > is set. > > Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com> > --- > drivers/mmc/card/queue.c | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/drivers/mmc/card/queue.c b/drivers/mmc/card/queue.c > index 1b9c9b6..30cd13b 100644 > --- a/drivers/mmc/card/queue.c > +++ b/drivers/mmc/card/queue.c > @@ -180,12 +180,13 @@ int mmc_init_queue(struct mmc_queue *mq, struct mmc_card *card, spinlock_t *lock > blk_queue_max_hw_segments(mq->queue, host->max_hw_segs); > blk_queue_max_segment_size(mq->queue, host->max_seg_size); > > - mq->sg = kzalloc(sizeof(struct scatterlist) * > + mq->sg = kmalloc(sizeof(struct scatterlist) * > host->max_phys_segs, GFP_KERNEL); > if (!mq->sg) { > ret = -ENOMEM; > goto cleanup_queue; > } > + sg_init_table(mq->sg, host->max_phys_segs); > } > > init_MUTEX(&mq->thread_sem);
Applied -- Jens Axboe -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH] mmc: Add missing sg_init_table() call
, Haavard Skinnemoen
, (Thu Nov 22, 3:32 pm)
Re: [PATCH] mmc: Add missing sg_init_table() call
, Andrew Morton
, (Tue Nov 27, 1:29 am)
Re: [PATCH] mmc: Add missing sg_init_table() call
, Haavard Skinnemoen
, (Tue Nov 27, 5:11 am)
Re: [PATCH] mmc: Add missing sg_init_table() call
, Pierre Ossman
, (Tue Nov 27, 1:57 am)
Re: [PATCH] mmc: Add missing sg_init_table() call
, Jens Axboe
, (Tue Nov 27, 4:54 am)
Re: [PATCH] mmc: Add missing sg_init_table() call
, Rafael J. Wysocki
, (Tue Nov 27, 1:27 pm)
Re: [PATCH] mmc: Add missing sg_init_table() call
, Jens Axboe
, (Fri Nov 23, 5:18 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg KH
[GIT PATCH] driver core patches against 2.6.24
clameter
[31/36] Large Blocksize: Core piece
David Woodhouse
Re: [GIT *] Allow request_firmware() to be satisfied from in-kernel, use it in mor...
git
:
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
KOSAKI Motohiro
[bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin"
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
6 users
and
841 guests
online.
Online users
coachf12869khdp
gpscartracking
runyourcaronwa
catfeeder
louisesug
cordic
Syndicate