Am Sunday, den 10 February hub Krzysztof Oledzki folgendes in die Tasten:

> >I did a git bisect between v2.6.22 v2.6.23 and it seems that
> > 6cb8f91320d3e720351c21741da795fed580b21b
> >introduced some badness.

> Thanks! This was *really* useful!

> Now, how about attached patch? Should work with both 2.6.23 and 2.6.24.

I build a patched 2.6.24 and it bootet without a problem.

> [SCSI] mpt fusion: Don't oops if NumPhys==0

> Don't oops if NumPhys==0, instead return -ENODEV.
> This patch fixes http://bugzilla.kernel.org/show_bug.cgi?id=9909
 
> Signed-off-by: Krzysztof Piotr Oledzki <[EMAIL PROTECTED]>
Tested-by: Maximilian Wilhelm <[EMAIL PROTECTED]>

> diff -Nur a/drivers/message/fusion/mptsas.c b/drivers/message/fusion/mptsas.c
> --- a/drivers/message/fusion/mptsas.c 2007-10-09 22:31:38.000000000 +0200
> +++ b/drivers/message/fusion/mptsas.c 2008-02-10 17:38:51.000000000 +0100
> @@ -1772,6 +1772,11 @@
>       if (error)
>               goto out_free_consistent;
>  
> +     if (!buffer->NumPhys) {
> +             error = -ENODEV;
> +             goto out_free_consistent;
> +     }
> +
>       /* save config data */
>       port_info->num_phys = buffer->NumPhys;
>       port_info->phy_info = kcalloc(port_info->num_phys,

Many Thanks!

Ciao
Max
-- 
        Follow the white penguin.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to