Re: [PATCH] tg3: fix return value check in tg3_read_vpd()

From: Dan Carpenter
Date: Mon Dec 27 2010 - 15:19:57 EST


On Mon, Dec 27, 2010 at 06:31:34PM +0100, David Sterba wrote:
> CC: Matt Carlson <mcarlson@xxxxxxxxxxxx>
> CC: Michael Chan <mchan@xxxxxxxxxxxx>
> Signed-off-by: David Sterba <dsterba@xxxxxxx>
> ---

Your fix is obviously correct, but could you describe the symptoms
in your changelog instead of leaving it blank? In the original code,
negative error values are ignored so we never goto out_not_found. Can
pci_read_vpd() return any errors we care about besides -ENODEV? What I
mean is, did you find this through analysing the code or did it cause a
bug at runtime?

regards,
dan carpenter

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