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

From: Rakib Mullick
Date: Sat Dec 05 2009 - 00:47:35 EST


On 12/5/09, Alex Chiang <achiang@xxxxxx> wrote:
> * Rakib Mullick <rakib.mullick@xxxxxxxxx>:
> >
>
> > 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.
>
> At no point that I can tell do we ever access an uninitialized
> 'dev'.
>
> Please explain to me one more time what you think you are fixing.
>
Ahh......... I miss the point that we haven't __access__ the uninitialized
pointer. I was messing up with it __remains__ uninitialized ( it was a
clear stupidity from me :-( ).

Thanks, Alex for your help.

Rakib,

> 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/