[PATCH] [SCSI] mpt3sas: don't leak 'fw_event' in mpt3sas_send_trigger_data_event()

2013-09-30 Thread Jesper Juhl
If we successfully allocate 'fw_event' but subsequently fail to allocate 'fw_event->event_data' then we'll return from the function without properly freeing 'fw_event'. This patch takes care of that leak. Signed-off-by: Jesper Juhl --- drivers/scsi/mpt3sa

[PATCH] [SCSI] csiostor: Don't leak mem or fail to release firmware in csio_hw_flash_config()

2012-12-26 Thread Jesper Juhl
If kzalloc() or csio_hw_check_fwconfig() fail we may leave the csio_hw_flash_config() function without freeing allocated memory or firmware. This should take care of the leaks. Signed-off-by: Jesper Juhl --- drivers/scsi/csiostor/csio_hw.c | 15 +-- 1 files changed, 9 insertions

[PATCH] [SCSI] mpt3sas: remove pointless version.h include from mpt3sas_trigger_diag.c

2012-12-29 Thread Jesper Juhl
The file uses nothing from the header, so remove it. Signed-off-by: Jesper Juhl --- drivers/scsi/mpt3sas/mpt3sas_trigger_diag.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/mpt3sas/mpt3sas_trigger_diag.c b/drivers/scsi/mpt3sas/mpt3sas_trigger_diag.c

[PATCH] Fix problem with size of allocation in libsas

2007-11-11 Thread Jesper Juhl
From: Jesper Juhl <[EMAIL PROTECTED]> in sas_get_phy_change_count(), the line disc_resp = alloc_smp_resp(DISCOVER_RESP_SIZE); will allocate 56 bytes due to this define: #define DISCOVER_RESP_SIZE 56 But, the struct is actually 60 bytes in size. So change the define

Re: [PATCH] Fix problem with size of allocation in libsas

2007-11-11 Thread Jesper Juhl
On 12/11/2007, James Bottomley <[EMAIL PROTECTED]> wrote: > On Mon, 2007-11-12 at 00:24 +0100, Jesper Juhl wrote: > > From: Jesper Juhl <[EMAIL PROTECTED]> > > > > in sas_get_phy_change_count(), the line > > disc_resp = alloc_smp_resp(DISCOVER_RESP_S

Re: [PATCH] Fix problem with size of allocation in libsas

2007-11-11 Thread Jesper Juhl
On 12/11/2007, James Bottomley <[EMAIL PROTECTED]> wrote: > On Mon, 2007-11-12 at 01:13 +0100, Jesper Juhl wrote: > > On 12/11/2007, James Bottomley <[EMAIL PROTECTED]> wrote: > > > On Mon, 2007-11-12 at 00:24 +0100, Jesper Juhl wrote: > > >

Re: scsi0: Unexpected busfree while idle - Adaptec 29160N Ultra160 SCSI adapter

2007-07-14 Thread Jesper Juhl
On 09/07/07, Jesper Juhl <[EMAIL PROTECTED]> wrote: I just experienced a long hang and a lot of unpleasant messages in dmesg while building randconfig kernels in a loop. It just happened again without me doing anything special, just normal desktop use, surfing the net, reading email etc

[PATCH][13/37] Clean up duplicate includes in drivers/scsi/

2007-07-21 Thread Jesper Juhl
Hi, This patch cleans up duplicate includes in drivers/scsi/ Signed-off-by: Jesper Juhl <[EMAIL PROTECTED]> --- diff --git a/drivers/scsi/NCR_D700.c b/drivers/scsi/NCR_D700.c index 3a80897..e0f1991 100644 --- a/drivers/scsi/NCR_D700.c +++ b/drivers/scsi/NCR_D700.c @@ -97,7

(resend) scsi0: Unexpected busfree while idle - Adaptec 29160N Ultra160 SCSI adapter

2007-07-25 Thread Jesper Juhl
d, I'll test patches, suggestions etc. Any ideas people? On Sunday 15 July 2007 04:04:50 Jesper Juhl wrote: > On 09/07/07, Jesper Juhl <[EMAIL PROTECTED]> wrote: > > I just experienced a long hang and a lot of unpleasant messages in dmesg > > while building randconfi

[PATCH][sas] Fix potential NULL pointer dereference bug in sas_smp_handler()

2007-07-27 Thread Jesper Juhl
. Signed-off-by: Jesper Juhl <[EMAIL PROTECTED]> --- drivers/scsi/libsas/sas_expander.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/libsas/sas_expander.c b/drivers/scsi/libsas/sas_expander.c index b500f0c..7871406 100644 --- a/drivers/scsi/

[PATCH][sas] Fix potential NULL pointer dereference bug in sas_smp_get_phy_events()

2007-07-27 Thread Jesper Juhl
other memory allocation in that function. This patch reworks the memory allocation a bit to deal with it (compile tested only). Signed-off-by: Jesper Juhl <[EMAIL PROTECTED]> --- drivers/scsi/libsas/sas_expander.c | 11 +-- 1 files changed, 9 insertions(+), 2 deletions(-) diff -

Re: [PATCH][sas] Fix potential NULL pointer dereference bug in sas_smp_get_phy_events()

2007-07-27 Thread Jesper Juhl
On 28/07/07, James Bottomley <[EMAIL PROTECTED]> wrote: > On Fri, 2007-07-27 at 23:27 +0200, Jesper Juhl wrote: > > In sas_smp_get_phy_events() we never test if the call to > > alloc_smp_req(RPEL_REQ_SIZE) succeeds or fails. That means we run > > the risk of derefer

[PATCH] Fix two potential mem leaks in MPT Fusion (mpt_attach())

2007-08-01 Thread Jesper Juhl
compile tested only. Signed-off-by: Jesper Juhl <[EMAIL PROTECTED]> --- drivers/message/fusion/mptbase.c | 13 +++-- 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/message/fusion/mptbase.c b/drivers/message/fusion/mptbase.c index e866dac..f9bb705 100644 ---

Re: [PATCH] Fix two potential mem leaks in MPT Fusion (mpt_attach())

2007-08-02 Thread Jesper Juhl
On 02/08/07, Andrew Morton <[EMAIL PROTECTED]> wrote: > On Thu, 2 Aug 2007 01:55:33 +0200 > Jesper Juhl <[EMAIL PROTECTED]> wrote: > [snip] > > +++ b/drivers/message/fusion/mptbase.c > > @@ -1393,18 +1393,18 @@ mpt_attach(struct pci_dev *pdev, const struct > &

Re: [PATCH][RESEND] Fix a potential NULL pointer deref in the aic7xxx, ahc_print_register() function

2007-08-05 Thread Jesper Juhl
dummy_column = 0; > cur_column = &dummy_column; > } > > and then stripping out the cur_column == NULL checks in the routine. > Thank you for that info. James, if that sounds like a better way to deal with it to you, then here's a patch to implement i

Re: [PATCH][RESEND] Fix a potential NULL pointer deref in the aic7xxx, ahc_print_register() function

2007-08-05 Thread Jesper Juhl
On 04/08/07, James Bottomley <[EMAIL PROTECTED]> wrote: > On Sat, 2007-08-04 at 20:30 +0200, Jesper Juhl wrote: > > (resend of patch previously submitted on 28-Jul-2007 23:06) > > > > > > Ehlo, > > > > The Coverity checker noticed that we have a pot

[PATCH] Emulex FC HBA driver: fix overflow of statically allocated array

2007-08-09 Thread Jesper Juhl
#x27; into 'hbqno >= LPFC_MAX_HBQS' as a possible fix. Signed-off-by: Jesper Juhl <[EMAIL PROTECTED]> --- drivers/scsi/lpfc/lpfc_sli.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_sli.c b/drivers/scsi/lpfc/lpfc_sli.c index ce5ff2b..

Unexpected busfree in Message-in phase

2007-08-11 Thread Jesper Juhl
: [40] Power Management version 2 If you need anything else (like my .config etc), just ask. -- Jesper Juhl <[EMAIL PROTECTED]> Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html Plain text mails only, please http://www.expita.com/nomime.html - To unsubscribe from

Build failure in advansys driver - error: implicit declaration of function 'to_pci_dev'

2007-08-11 Thread Jesper Juhl
snd_page_alloc snd_util_mem agpgart sg snd_hwdep evdev ehci_hcd via_rhine k8temp I've also attached a complete build log. If you need any further details, just ask. Kind regards, Jesper Juhl config.24.gz Description: GNU Zip compressed data build.log.24.gz Description: GNU Zip compressed data

cciss: warning: right shift count >= width of type

2007-08-11 Thread Jesper Juhl
r way to deal with that is, so I'll just report it so hopefully someone else can fix it. By the way; I'm building current Linus git tree, head at commit ac07860264bd2b18834d3fa3be47032115524cea Kind regards, Jesper Juhl - To unsubscribe from this list: send the line "unsub

Re: cciss: warning: right shift count >= width of type

2007-08-11 Thread Jesper Juhl
(whoops, forgot to add maintainer to Cc - now added) On 12/08/07, Jesper Juhl <[EMAIL PROTECTED]> wrote: > Hi, > > I've been building some randconfig kernels lately and I've noticed > this in a few builds : > > drivers/block/cciss.c:2614: warning: right shif

Re: Build failure in advansys driver - error: implicit declaration of function 'to_pci_dev'

2007-08-12 Thread Jesper Juhl
On 12/08/07, Matthew Wilcox <[EMAIL PROTECTED]> wrote: > On Sun, Aug 12, 2007 at 01:43:16AM +0200, Jesper Juhl wrote: > > Trying to build current Linus git tree (head at > > ac07860264bd2b18834d3fa3be47032115524cea) using the attached config > > file (generated by &

[PATCH 4/6][RESEND] Emulex FC HBA driver: fix overflow of statically allocated array

2007-08-12 Thread Jesper Juhl
the 'hbqno > LPFC_MAX_HBQS' into 'hbqno >= LPFC_MAX_HBQS' as a possible fix. Signed-off-by: Jesper Juhl <[EMAIL PROTECTED]> Acked-by: James Smart <[EMAIL PROTECTED]> --- drivers/scsi/lpfc/lpfc_sli.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-)

Re: [PATCH 4/6][RESEND] Emulex FC HBA driver: fix overflow of statically allocated array

2007-08-13 Thread Jesper Juhl
I assumed it had not been merged. I just looked again, at the source this time, up-to-date mainline git tree, and I still see hbqno = tag >> 16; if (hbqno > LPFC_MAX_HBQS) return NULL; in drivers/scsi/lpfc/lpfc_sli.c ??? > -- james s > > Jespe

Re: [PATCH 4/6][RESEND] Emulex FC HBA driver: fix overflow of statically allocated array

2007-08-13 Thread Jesper Juhl
range check. > > Since this really is just something to keep the tools happy - I'll recind the > NACK. > I'll worry about simply removing this if-check later... > > James/Andrew, accept this patch - ACK. > -- Jesper Juhl <[EMAIL PROTECTED]> Don

Re: Unexpected busfree in Message-in phase

2007-08-13 Thread Jesper Juhl
On 13/08/07, Michal Piotrowski <[EMAIL PROTECTED]> wrote: > Hi Jesper, > > On 11/08/07, Jesper Juhl <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I just noticed this in dmesg : > > > > [ 3216.262987] (scsi0:A:4:0): Unexpected busfree in M

[PATCH 19/30] scsi: Remove explicit casts of [kv]alloc return values in osst driver

2007-08-23 Thread Jesper Juhl
[kv]alloc() return void *. No need to cast the return value. Signed-off-by: Jesper Juhl <[EMAIL PROTECTED]> --- drivers/scsi/osst.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/osst.c b/drivers/scsi/osst.c index 08060fb..3ad9d49 100644

[PATCH 20/30] scsi: In the Advansys driver, do not cast allocation function return values

2007-08-23 Thread Jesper Juhl
There's no reason to cast void pointers returned by the generic memory allocation functions. Signed-off-by: Jesper Juhl <[EMAIL PROTECTED]> --- drivers/scsi/advansys.c |9 +++-- 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/scsi/advansys.c b/d

Re: [PATCH 19/30] scsi: Remove explicit casts of [kv]alloc return values in osst driver

2007-08-24 Thread Jesper Juhl
On 24/08/07, Rolf Eike Beer <[EMAIL PROTECTED]> wrote: > Jesper Juhl wrote: > > [kv]alloc() return void *. No need to cast the return value. > > > @@ -5756,7 +5756,7 @@ static int osst_probe(struct device *dev) > > write_lock(&os_scsi_tapes_lock); &

Re: [PATCH 20/30] scsi: In the Advansys driver, do not cast allocation function return values

2007-08-24 Thread Jesper Juhl
On 24/08/07, Matthew Wilcox <[EMAIL PROTECTED]> wrote: > On Fri, Aug 24, 2007 at 02:16:12AM +0200, Jesper Juhl wrote: > > There's no reason to cast void pointers returned by the generic > > memory allocation functions. > > I think I fixed all these already; please c

Re: [PATCH -mm] IPS SCSI driver: Check return of scsi_add_host()

2007-09-02 Thread Jesper Juhl
On Sunday 02 September 2007 22:13:49 Satyam Sharma wrote: > > drivers/scsi/ips.c: In function ‘ips_register_scsi’: > drivers/scsi/ips.c:6869: > warning: ignoring return value of ‘scsi_add_host’, declared with attribute > warn_unused_result > > scsi_add_host() is __must_check, so let's check it's

Re: [patch 08/17] Fix a potential NULL pointer deref in the aic7xxx, ahc_print_register() function

2007-10-05 Thread Jesper Juhl
On 05/10/2007, James Bottomley <[EMAIL PROTECTED]> wrote: > On Tue, 2007-10-02 at 14:38 -0700, [EMAIL PROTECTED] wrote: > > From: Jesper Juhl <[EMAIL PROTECTED]> > > > > The Coverity checker noticed that we have a potential NULL pointer > > deref

shouldn't "irq" be module_param_array instead of module_param in scsi/gdth.c ?

2005-01-30 Thread Jesper Juhl
lences the warning. Signed-off-by: Jesper Juhl <[EMAIL PROTECTED]> --- linux-2.6.11-rc2-bk7-orig/drivers/scsi/gdth.c 2005-01-22 21:59:46.0 +0100 +++ linux-2.6.11-rc2-bk7/drivers/scsi/gdth.c2005-01-30 16:52:45.0 +0100 @@ -642,7 +642,7 @@ static int probe_eisa_isa

Re: shouldn't "irq" be module_param_array instead of module_param in scsi/gdth.c ?

2005-01-30 Thread Jesper Juhl
On Sun, 30 Jan 2005, Randy.Dunlap wrote: > Jesper Juhl wrote: > > This little warning made me take a closer look : drivers/scsi/gdth.c:645: > > warning: return from incompatible pointer type > > > > And line 645 looks like this : > > > > module_param(irq

Bug: audio playing broke with my SCSI CD and DVD drives in 2.6.11-rc2-bk7 and beyond.

2005-01-31 Thread Jesper Juhl
Hi, I hope I got all relevant info included in the text below, but if you lack something just ask. If you want me to test patches or try and revert patches, then just let me know - I can do all the testing you need me to. [1.] One line summary of the problem: Playing audio CD's in SCSI playe

Re: Bug: audio playing broke with my SCSI CD and DVD drives in 2.6.11-rc2-bk7 and beyond.

2005-01-31 Thread Jesper Juhl
On Mon, 31 Jan 2005, James Bottomley wrote: > On Tue, 2005-02-01 at 00:22 +0100, Jesper Juhl wrote: > > audio > Could you try the attached? > James > I applied the patch to 2.6.11-rc2-bk9, rebuild, rebooted and now everything is just fine. Thank you. -- Jesper Juhl - T

test of 'good_bytes' in scsi_io_completion is always true (in drivers/scsi/scsi_lib.c)

2005-04-19 Thread Jesper Juhl
gh to be sure. The patch below makes the change to test if it's > 0, but if the code in the 'if' really wants to run if it's >= 0, then we might as well just remove the 'if'. In any case, the current code looks fishy. Signed-off-by: Jesper Juhl <[EMAIL PRO

[patch] QLogic SCSI driver Kconfig fixes

2005-07-19 Thread Jesper Juhl
7;t need it, and it adds a help text. Signed-off-by: Jesper Juhl <[EMAIL PROTECTED]> --- drivers/scsi/qla2xxx/Kconfig |6 +- 1 files changed, 5 insertions(+), 1 deletion(-) --- linux-2.6.13-rc3-mm1-orig/drivers/scsi/qla2xxx/Kconfig 2005-07-17 04:39:52.0 +0200 +++ linux

Re: [-mm patch] SCSI_QLA2ABC options must select FW_LOADER

2005-07-20 Thread Jesper Juhl
gic ISP24xx host adapter family support" > depends on SCSI_QLA2XXX > -select SCSI_FC_ATTRS > + select SCSI_FC_ATTRS > + select FW_LOADER > ---help--- > This driver supports the QLogic 24xx (ISP2422 and ISP2432) host >

Re: [PATCH 1/2] cpqfc: fix for "Using too much stach" in 2.6 kernel

2005-08-04 Thread Jesper Juhl
er branch is to call kfree(ulFibreFrame); , so instead of having the call in both branches you might as well just have one call before the if(). Ohh and this looks like it could do with a CodingStyle cleanup as well. kfree(ulFibreFrame); if (fchs->pl[0] == ELS_LILP_FRAME) return 1; /* fo

Re: [PATCH 1/2] cpqfc: fix for "Using too much stach" in 2.6 kernel

2005-08-05 Thread Jesper Juhl
On 8/4/05, Jesper Juhl <[EMAIL PROTECTED]> wrote: > On 8/4/05, Saripalli, Venkata Ramanamurthy (STSD) <[EMAIL PROTECTED]> wrote: > > Patch 1 of 2 > > > > This patch fixes the "#error this is too much stack" in 2.6 kernel. > > Using kmallo

[PATCH] fix compiler warning in aic7770

2005-08-29 Thread Jesper Juhl
Fix compiler warning in drivers/scsi/aic7xxx/aic7770.c : drivers/scsi/aic7xxx/aic7770.c:129: warning: unused variable `l' Signed-off-by: Jesper Juhl <[EMAIL PROTECTED]> --- drivers/scsi/aic7xxx/aic7770.c |1 - 1 files changed, 1 deletion(-) --- linux-2.6.13-orig/drivers/s

Re: [PATCH] fix compiler warning in aic7770

2005-08-30 Thread Jesper Juhl
On 8/30/05, Adrian Bunk <[EMAIL PROTECTED]> wrote: > On Tue, Aug 30, 2005 at 01:15:36AM +0200, Jesper Juhl wrote: > > > Fix compiler warning in drivers/scsi/aic7xxx/aic7770.c : > >drivers/scsi/aic7xxx/aic7770.c:129: warning: unused variable `l' > >... >

NMI Watchdog detected LOCKUP

2006-12-28 Thread Jesper Juhl
Vendor: IBM Model: SERVERAIDRev: 1.00 Type: ProcessorANSI SCSI revision: 02 Host: scsi2 Channel: 01 Id: 15 Lun: 00 Vendor: IBM Model: EXP400 S320Rev: D110 Type: ProcessorANSI SCSI revision: 03 -- Kind regards, Jesper