Re: [PATCH] pci: Make pci_dev struct point to NULL.

From: Rakib Mullick
Date: Sat Dec 05 2009 - 00:18:28 EST


On 12/5/09, Alex Chiang <achiang@xxxxxx> wrote:
> * Rakib Mullick <rakib.mullick@xxxxxxxxx>:
> > On 12/5/09, Alex Chiang <achiang@xxxxxx> wrote:
> > > * Rakib Mullick <rakib.mullick@xxxxxxxxx>:
>
>
> Right, so what's the problem? If the slot is not enabled, we goto
> err_exit and return, never touching dev.
>
>
> I must be slow, because I don't understand how we might reference
> trash.
>
Since *pdev might be uninitialized. But if we are sure that it is not
uninitialized
then it is okay.

And yes - althrough we weren't warned by the compiler.

Thanks,

>
> Thanks,
>
> /ac
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/