lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20091205043747.GB10777@ldl.fc.hp.com>
Date:	Fri, 4 Dec 2009 21:37:47 -0700
From:	Alex Chiang <achiang@...com>
To:	Rakib Mullick <rakib.mullick@...il.com>
Cc:	Jesse Barnes <jbarnes@...tuousgeek.org>, linux-pci@...r.kernel.org,
	LKML <linux-kernel@...r.kernel.org>,
	Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [PATCH] pci: Make pci_dev struct point to NULL.

* Alex Chiang <achiang@...com>:
> * Rakib Mullick <rakib.mullick@...il.com>:
> > On 12/5/09, Alex Chiang <achiang@...com> wrote:
> > > * Rakib Mullick <rakib.mullick@...il.com>:
> > >
> > > This is from Linus's latest tree:
> > >
> > >   974
> > >   975         if (slot->flags & SLOT_ENABLED)
> > >   976                 goto err_exit;
> > 
> > I'm talking about this line. From here we can hit 'goto err_exit' without
> > using pci_get_slot.
> 
> Right, so what's the problem? If the slot is not enabled, we goto
> err_exit and return, never touching dev.
 
Whoops, of course I meant if the slot is already enabled, then we
return early.

/ac

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ