HSI: ssi_protocol: fix potential resource leak in ssip_pn_open()
[linux-2.6-microblaze.git] / drivers / hsi / clients / ssi_protocol.c
index 7aacb19..274ad84 100644 (file)
@@ -930,6 +930,7 @@ static int ssip_pn_open(struct net_device *dev)
        if (err < 0) {
                dev_err(&cl->device, "Register HSI port event failed (%d)\n",
                        err);
+               hsi_release_port(cl);
                return err;
        }
        dev_dbg(&cl->device, "Configuring SSI port\n");