diff options
author | Alan Cox <alan@redhat.com> | 2008-10-13 05:36:11 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-13 12:51:39 -0400 |
commit | 40836c484c31301998a14be0439cc4e856399843 (patch) | |
tree | 3852b0d70a038d5a94a65d850dfb29f78363a15d | |
parent | 43b11d33f2c20c33fcf197780edb2e5d8a1b6a67 (diff) |
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>
-rw-r--r-- | drivers/serial/8250_pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/serial/8250_pci.c b/drivers/serial/8250_pci.c index c2f23933155b..c014ffb110e9 100644 --- a/drivers/serial/8250_pci.c +++ b/drivers/serial/8250_pci.c | |||
@@ -2041,9 +2041,9 @@ static int pciserial_resume_one(struct pci_dev *dev) | |||
2041 | * The device may have been disabled. Re-enable it. | 2041 | * The device may have been disabled. Re-enable it. |
2042 | */ | 2042 | */ |
2043 | err = pci_enable_device(dev); | 2043 | err = pci_enable_device(dev); |
2044 | /* FIXME: We cannot simply error out here */ | ||
2044 | if (err) | 2045 | if (err) |
2045 | return err; | 2046 | printk(KERN_ERR "pciserial: Unable to re-enable ports, trying to continue.\n"); |
2046 | |||
2047 | pciserial_resume_ports(priv); | 2047 | pciserial_resume_ports(priv); |
2048 | } | 2048 | } |
2049 | return 0; | 2049 | return 0; |