[IA64] ioc3_serial: release resources in error return path

In ioc3uart_probe()
resources were not released during error return path
- ports[phys_port]

Signed-off-by: Rahul Ruikar <rahul.ruikar@gmail.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>

authored by Rahul Ruikar and committed by Tony Luck 35ed1674 df0a59a1

+4
+4
drivers/serial/ioc3_serial.c
··· 2017 struct ioc3_port *port; 2018 struct ioc3_port *ports[PORTS_PER_CARD]; 2019 int phys_port; 2020 2021 DPRINT_CONFIG(("%s (0x%p, 0x%p)\n", __func__, is, idd)); 2022 ··· 2147 2148 /* error exits that give back resources */ 2149 out4: 2150 kfree(card_ptr); 2151 return ret; 2152 }
··· 2017 struct ioc3_port *port; 2018 struct ioc3_port *ports[PORTS_PER_CARD]; 2019 int phys_port; 2020 + int cnt; 2021 2022 DPRINT_CONFIG(("%s (0x%p, 0x%p)\n", __func__, is, idd)); 2023 ··· 2146 2147 /* error exits that give back resources */ 2148 out4: 2149 + for (cnt = 0; cnt < phys_port; cnt++) 2150 + kfree(ports[cnt]); 2151 + 2152 kfree(card_ptr); 2153 return ret; 2154 }