Re: [ PATCH ] mptsas: Fix oops for insmod during kexec

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

 



On Fri, Mar 09, 2007 at 01:07:44PM -0800, Judith Lebzelter wrote:
> Hello,
> 
> This patch is to fix an oops on insmod for mptsas during kexec.
> This applies to 2.6.21-rc3.
> 
> Signed-off-by:  Judith Lebzelter <judith@xxxxxxxx
> 
> ---
> 
> 
> Index: linux-2.6.21-rc3/drivers/message/fusion/mptsas.c
> ===================================================================
> --- linux-2.6.21-rc3.orig/drivers/message/fusion/mptsas.c
> +++ linux-2.6.21-rc3/drivers/message/fusion/mptsas.c
> @@ -815,7 +815,7 @@ mptsas_taskmgmt_complete(MPT_ADAPTER *io
>  static int
>  mptsas_ioc_reset(MPT_ADAPTER *ioc, int reset_phase)
>  {
> -	MPT_SCSI_HOST	*hd = (MPT_SCSI_HOST *)ioc->sh->hostdata;
> +	MPT_SCSI_HOST	*hd;
>  	struct mptsas_target_reset_event *target_reset_list, *n;
>  	int rc;
>  
> @@ -827,7 +827,10 @@ mptsas_ioc_reset(MPT_ADAPTER *ioc, int r
>  	if (reset_phase != MPT_IOC_POST_RESET)
>  		goto out;
>  
> -	if (!hd || !hd->ioc)
> +	if (!ioc->sh || !ioc->sh->hostdata)
> +		goto out;
> +	hd = (MPT_SCSI_HOST *)ioc->sh->hostdata;
> +	if (!hd->ioc)

This needs a much better explanation.  Please show the codepath
leading to this.

-
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