]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/rapidio/rio-driver.c
IB/mlx4: Use kzalloc() for new QPs so flags are initialized to 0
[karo-tx-linux.git] / drivers / rapidio / rio-driver.c
index 3ce9f3defc1287f688f6484f2f265b7cdb620125..956d3e79f6aaab9c701be85526dbade07cd69a3b 100644 (file)
@@ -101,8 +101,8 @@ static int rio_device_probe(struct device *dev)
                if (error >= 0) {
                        rdev->driver = rdrv;
                        error = 0;
+               } else
                        rio_dev_put(rdev);
-               }
        }
        return error;
 }