login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
March
»
13
Re: [PATCH ver3] isd200: Allocate sense_buffer for hacked up scsi_cmnd
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Andrew Morton
Subject:
Re: [PATCH ver3] isd200: Allocate sense_buffer for hacked up scsi_cmnd
Date: Thursday, March 13, 2008 - 1:01 pm
On Wed, 12 Mar 2008 19:20:09 +0200 Boaz Harrosh <bharrosh@panasas.com> wrote:
quoted text
> > Since the separation of sense_buffer from scsi_cmnd, Drivers that hack their > own struct scsi_cmnd like here isd200, must also take care of their own > sense_buffer. > > Signed-off-by: Boaz Harrosh <bharrosh@panasas.com> > --- > drivers/usb/storage/isd200.c | 5 ++++- > 1 files changed, 4 insertions(+), 1 deletions(-) > > diff --git a/drivers/usb/storage/isd200.c b/drivers/usb/storage/isd200.c > index 4f2d143..971d13d 100644 > --- a/drivers/usb/storage/isd200.c > +++ b/drivers/usb/storage/isd200.c > @@ -1470,6 +1470,7 @@ static void isd200_free_info_ptrs(void *info_) > if (info) { > kfree(info->id); > kfree(info->RegsBuf); > + kfree(info->srb.sense_buffer); > } > } > > @@ -1495,7 +1496,9 @@ static int isd200_init_info(struct us_data *us) > kzalloc(sizeof(struct hd_driveid), GFP_KERNEL); > info->RegsBuf = (unsigned char *) > kmalloc(sizeof(info->ATARegs), GFP_KERNEL); > - if (!info->id || !info->RegsBuf) { > + info->srb.sense_buffer = > + kmalloc(SCSI_SENSE_BUFFERSIZE, GFP_KERNEL); > + if (!info->id || !info->RegsBuf || !info->srb.sense_buffer) { > isd200_free_info_ptrs(info); > kfree(info); > retStatus = ISD200_ERROR;
I've thoroughly lost the plot here. Is this needed in 2.6.25? If so, why? Thanks. --
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] [SCSI] gdth: Allocate sense_buffer to prevent NULL ...
, Sven Schnelle
, (Sun Mar 9, 5:41 am)
Re: [PATCH] [SCSI] gdth: Allocate sense_buffer to prevent ...
, Boaz Harrosh
, (Mon Mar 10, 8:20 am)
Re: [PATCH] [SCSI] gdth: Allocate sense_buffer to prevent ...
, James Bottomley
, (Mon Mar 10, 2:12 pm)
Re: [PATCH] [SCSI] gdth: Allocate sense_buffer to prevent ...
, Sven Schnelle
, (Mon Mar 10, 2:50 pm)
Re: [PATCH] [SCSI] gdth: Allocate sense_buffer to prevent ...
, Boaz Harrosh
, (Tue Mar 11, 8:47 am)
Re: [PATCH] [SCSI] gdth: Allocate sense_buffer to prevent ...
, Boaz Harrosh
, (Tue Mar 11, 9:16 am)
Re: [PATCH] [SCSI] gdth: Allocate sense_buffer to prevent ...
, Matthew Dharm
, (Tue Mar 11, 10:39 am)
Re: [PATCH] [SCSI] gdth: Allocate sense_buffer to prevent ...
, Alan Stern
, (Tue Mar 11, 11:07 am)
Re: [PATCH] [SCSI] gdth: Allocate sense_buffer to prevent ...
, Boaz Harrosh
, (Tue Mar 11, 11:36 am)
Re: [PATCH] [SCSI] gdth: Allocate sense_buffer to prevent ...
, Alan Stern
, (Tue Mar 11, 12:18 pm)
Re: [PATCH] [SCSI] gdth: Allocate sense_buffer to prevent ...
, Boaz Harrosh
, (Wed Mar 12, 6:07 am)
[PATCH] isd200: Allocate sense_buffer for hacked up scsi_cmnd
, Boaz Harrosh
, (Wed Mar 12, 6:11 am)
[PATCH] isd200: Fix memory leak in isd200_get_inquiry_data
, Boaz Harrosh
, (Wed Mar 12, 6:55 am)
Re: [PATCH] [SCSI] gdth: Allocate sense_buffer to prevent ...
, Alan Stern
, (Wed Mar 12, 8:08 am)
Re: [PATCH] isd200: Allocate sense_buffer for hacked up sc ...
, Alan Stern
, (Wed Mar 12, 8:10 am)
Re: [PATCH] isd200: Fix memory leak in isd200_get_inquiry_data
, Alan Stern
, (Wed Mar 12, 8:11 am)
[PATCH resend] isd200: Allocate sense_buffer for hacked up ...
, Boaz Harrosh
, (Wed Mar 12, 8:24 am)
Re: [PATCH resend] isd200: Allocate sense_buffer for hacke ...
, James Bottomley
, (Wed Mar 12, 9:54 am)
Re: [PATCH resend] isd200: Allocate sense_buffer for hacke ...
, Boaz Harrosh
, (Wed Mar 12, 10:05 am)
[PATCH ver3] isd200: Allocate sense_buffer for hacked up s ...
, Boaz Harrosh
, (Wed Mar 12, 10:20 am)
Re: [PATCH ver3] isd200: Allocate sense_buffer for hacked ...
, Andrew Morton
, (Thu Mar 13, 1:01 pm)
Re: [PATCH ver3] isd200: Allocate sense_buffer for hacked ...
, James Bottomley
, (Thu Mar 13, 1:16 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
David Howells
Re: [PATCH 5/5]bluetooth:hci_bcsp Fix operation on 'bcsp->msgq_txseq' may be un...
Francis Moreau
Re: Disk geometry from /sys
Eberhard Moenkeberg
Re: OT: character encodings (was: Linux 2.6.20-rc4)
Mr. James W. Laferriere
Re: Linux 2.6.25-rc1 , syntax error near unexpected token `;'
David Woodhouse
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
git-commits-head
:
Linux Kernel Mailing List
[ARM] unconditionally define __virt_to_phys and __phys_to_virt
Linux Kernel Mailing List
ACPICA: Fix to allow zero-length ASL field declarations
Linux Kernel Mailing List
tracing: Simplify trace_option_write()
Linux Kernel Mailing List
ARM: Add Versatile Express SMP support
Linux Kernel Mailing List
ixgbe: fix automatic LRO/RSC settings for low latency
git
:
Mark Junker
git on MacOSX and files with decomposed utf-8 file names
Pat Thoyts
[PATCH] git-gui: use themed tk widgets with Tk 8.5
Michael Witten
Re: 'git gc --aggressive' effectively unusable
Petko Manolov
git and binary files
Lynn Lin
Re: clearcase migration to git
linux-netdev
:
David Miller
Re: [PATCH 32/53] netns xfrm: finding policy in netns
David Miller
Re: [PATCH] IPv6: preferred lifetime of address not getting updated
Eric Dumazet
Re: [PATCH net-next-2.6] net: Introduce skb_orphan_try()
Mark McLoughlin
Re: [PATCH 2/3] virtio: fix delayed xmit of packet and freeing of old packets.
Matt Mackall
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
openbsd-misc
:
Samuel Baldwin
Re: Forum engine
Robert
disklabel - cylinder rounding
nixlists
Re: Which laptops do the developers use?
Marcin
Re: 4.6 reboots x336 ibm server(s)
L. V. Lammert
OT, .. but has anyone seen a crontab editor
Colocation donated by:
Syndicate