Re: [PATCH] r6040: disable pci device if the subsequent calls(after pci_enable_device) fails
From: David Miller
Date: Tue May 29 2012 - 17:28:45 EST
From: David Miller <davem@xxxxxxxxxxxxx>
Date: Tue, 29 May 2012 17:22:29 -0400 (EDT)
> From: Florian Fainelli <florian@xxxxxxxxxxx>
> Date: Tue, 29 May 2012 11:20:50 +0200
>
>> On Monday 28 May 2012 17:27:03 Devendra Naga wrote:
>>> the calls after the pci_enable_device may fail, and will error out with out
>>> disabling it. disable the device at error paths.
>>
>> Looks good, thanks Devendra!
>>
>>>
>>> Signed-off-by: Devendra Naga <devendra.aaru@xxxxxxxxx>
>>
>> Acked-by: Florian Fainelli <florian@xxxxxxxxxxx>
>
> Applied.
Actually, reverted, you didn't test this patch at all.
You didn't even look at the warnings emitted by the compiler
with your changes installed.
You're passing a network device pointer into the PCI device
disable routine, which takes a PCI device pointer.
I can't express to you how extremely irritating it is when
people submit patches like this.
The bug in question is 1,000 times less harmful than your fix.
--
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/