Messages in this thread | | | Date | Sat, 5 Dec 2009 11:18:05 +0600 | Subject | Re: [PATCH] pci: Make pci_dev struct point to NULL. | From | Rakib Mullick <> |
| |
On 12/5/09, Alex Chiang <achiang@hp.com> wrote: > * Rakib Mullick <rakib.mullick@gmail.com>: > > On 12/5/09, Alex Chiang <achiang@hp.com> wrote: > > > * Rakib Mullick <rakib.mullick@gmail.com>: > > > 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 > >
| |