FW: [PATCH 1/1] aacraid: Fixes kernel oops in "aac_eh_abort"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It looks like the patch has not been included in the upstream kernel.
Please let us know your review comments.

Thanks,
Mahesh

-----Original Message-----
From: Mahesh Bagepalli Rajashekhara - ERS, HCL Tech
[mailto:maheshbr@xxxxxxx] 
Sent: Thursday, March 08, 2012 5:13 PM
To: James.Bottomley@xxxxxxxxxxxxxxxxxxxxx
Cc: Achim Leubner; linux-scsi@xxxxxxxxxxxxxxx; aacraid@xxxxxxxxxxxxxx;
Tony Ruiz
Subject: [PATCH 1/1] aacraid: Fixes kernel oops in "aac_eh_abort"

Hi James,

This patch fixes the kernel oops in the error handler "aac_eh_abort"
function.

This attached patch is against current upstream kernel

ObligatoryDisclaimer: Please accept my condolences regarding Outlook's
handling of patch attachments (inline gets damaged, please use
attachment).

Signed-off-by: Mahesh Rajashekhara <aacraid@xxxxxxxxxxxxxx>

---

drivers/scsi/aacraid/commsup.c |    1 +
drivers/scsi/aacraid/linit.c   |    2 +-
2 files changed, 2 insertions(+), 1 deletion(-)

diff -purN a/drivers/scsi/aacraid/commsup.c
b/drivers/scsi/aacraid/commsup.c
--- a/drivers/scsi/aacraid/commsup.c    2012-03-08 14:28:50.000000000
+0530
+++ b/drivers/scsi/aacraid/commsup.c    2012-03-08 14:31:51.000000000
+0530
@@ -136,6 +136,7 @@ int aac_fib_setup(struct aac_dev * dev)
                i < (dev->scsi_host_ptr->can_queue + AAC_NUM_MGT_FIB);
                i++, fibptr++)
        {
+               fibptr->flags = 0;
                fibptr->dev = dev;
                fibptr->hw_fib_va = hw_fib;
                fibptr->data = (void *) fibptr->hw_fib_va->data;
diff -purN a/drivers/scsi/aacraid/linit.c b/drivers/scsi/aacraid/linit.c
--- a/drivers/scsi/aacraid/linit.c      2012-03-08 14:28:34.000000000
+0530
+++ b/drivers/scsi/aacraid/linit.c      2012-03-08 14:30:55.000000000
+0530
@@ -1157,7 +1157,7 @@ static int __devinit aac_probe_one(struc
        aac->cardtype = index;
        INIT_LIST_HEAD(&aac->entry);

-       aac->fibs = kmalloc(sizeof(struct fib) * (shost->can_queue +
AAC_NUM_MGT_FIB), GFP_KERNEL);
+       aac->fibs = kzalloc(sizeof(struct fib) * (shost->can_queue +
AAC_NUM_MGT_FIB), GFP_KERNEL);
        if (!aac->fibs)
                goto out_free_host;
        spin_lock_init(&aac->fib_lock);

::DISCLAIMER::
------------------------------------------------------------------------
-----------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and
intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its
affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily
reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure,
modification, distribution and / or publication of
this message without the prior written consent of the author of this
e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender
immediately. Before opening any mail and
attachments please check them for viruses and defect.

------------------------------------------------------------------------
-----------------------------------------------

Attachment: aac-kernel-oops-fix.patch
Description: aac-kernel-oops-fix.patch


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux