mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
serial_8250: pci_enable_device fail is not fully handled
<rmk> talking about leaks - I noticed that the 'check return of pci_enable_dev()' in the 8250 pci resume function finally made it in despite my objections against it (causing stuff in higher levels to leak). Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
43b11d33f2
commit
40836c484c
1 changed files with 2 additions and 2 deletions
|
@ -2041,9 +2041,9 @@ static int pciserial_resume_one(struct pci_dev *dev)
|
|||
* The device may have been disabled. Re-enable it.
|
||||
*/
|
||||
err = pci_enable_device(dev);
|
||||
/* FIXME: We cannot simply error out here */
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
printk(KERN_ERR "pciserial: Unable to re-enable ports, trying to continue.\n");
|
||||
pciserial_resume_ports(priv);
|
||||
}
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue