]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/serial/ioc3_serial.c
SERIAL: ioc3_serial: Return -ENOMEM on memory allocation failure
[karo-tx-linux.git] / drivers / serial / ioc3_serial.c
index 93de907b12088a54ab5809cf79c46ba5ec2757f2..800c54602339780cc79d615e16fb89f49bf3d5f5 100644 (file)
@@ -2044,6 +2044,7 @@ ioc3uart_probe(struct ioc3_submodule *is, struct ioc3_driver_data *idd)
                if (!port) {
                        printk(KERN_WARNING
                               "IOC3 serial memory not available for port\n");
+                       ret = -ENOMEM;
                        goto out4;
                }
                spin_lock_init(&port->ip_lock);