Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751708AbZLEFSB (ORCPT ); Sat, 5 Dec 2009 00:18:01 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751291AbZLEFSA (ORCPT ); Sat, 5 Dec 2009 00:18:00 -0500 Received: from mail-px0-f188.google.com ([209.85.216.188]:53708 "EHLO mail-px0-f188.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751267AbZLEFR7 (ORCPT ); Sat, 5 Dec 2009 00:17:59 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=GDqN1noXY9ZFY9okMLz+DGQFRNZmUYI3w+E5Gma3HioduibScdIGA1AQsj2LbHMNHI QBLstHQtQnTaA/tRQjYuVCPqVZbG/wUKEGxFVc4njkQ+F8eOLe3pwy6rE5H5XVXGoKxl E6b2eQEZbEQ/WyBhPaV8jw8yS+2OrgXRq+VQc= MIME-Version: 1.0 In-Reply-To: <20091205043635.GA10777@ldl.fc.hp.com> References: <20091204202709.GA32347@ldl.fc.hp.com> <20091205043635.GA10777@ldl.fc.hp.com> Date: Sat, 5 Dec 2009 11:18:05 +0600 Message-ID: Subject: Re: [PATCH] pci: Make pci_dev struct point to NULL. From: Rakib Mullick To: Alex Chiang Cc: Jesse Barnes , linux-pci@vger.kernel.org, LKML , Andrew Morton Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 833 Lines: 32 On 12/5/09, Alex Chiang wrote: > * Rakib Mullick : > > On 12/5/09, Alex Chiang wrote: > > > * Rakib Mullick : > > > 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/