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

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

 



ACK

Sincerely -- Mark Salyzyn

On Mar 8, 2012, at 6:43 AM, Mahesh Bagepalli Rajashekhara - ERS, HCL Tech wrote:

> 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);

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[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