login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
26
Re: [PATCH] Initialise scatter/gather list in sg driver
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: Anton Blanchard <anton@...>
Cc: <linux-kernel@...>
Subject:
Re: [PATCH] Initialise scatter/gather list in sg driver
Date: Friday, October 26, 2007 - 7:59 am
On Thu, Oct 25 2007, Anton Blanchard wrote:
quoted text
> > After turning on DEBUG_SG I hit a fail: > > kernel BUG at include/linux/scatterlist.h:50! > > sg_build_indirect > sg_build_reserve > sg_open > chrdev_open > __dentry_open > do_filp_open > do_sys_open > > We should initialise the sg list when we allocate it in sg_build_sgat. > > Signed-off-by: Anton Blanchard <anton@samba.org> > --- > > diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c > index b5fa4f0..f1871ea 100644 > --- a/drivers/scsi/sg.c > +++ b/drivers/scsi/sg.c > @@ -1652,6 +1652,7 @@ sg_build_sgat(Sg_scatter_hold * schp, const Sg_fd * sfp, int tablesize) > schp->buffer = kzalloc(sg_bufflen, gfp_flags); > if (!schp->buffer) > return -ENOMEM; > + sg_init_table(schp->buffer, tablesize); > schp->sglist_len = sg_bufflen; > return tablesize; /* number of scat_gath elements allocated */ > }
Thanks, 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] Initialise scatter/gather list in sg driver
, Anton Blanchard
, (Thu Oct 25, 3:35 pm)
Re: [PATCH] Initialise scatter/gather list in sg driver
, Jens Axboe
, (Fri Oct 26, 7:59 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 004/196] Chinese: add translation of SubmittingPatches
David Newall
Re: Slow DOWN, please!!!
Andrew Morton
Re: Linux 2.6.21-rc4
git
:
linux-netdev
:
David Miller
[GIT]: Networking
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Dale Farnsworth
Re: [PATCH 01/39] mv643xx_eth: reverse topological sort of functions
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
0 users
and
876 guests
online.
Syndicate