]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/staging/netlogic/xlr_net.c
staging: unisys: Remove visorchannel stub
[karo-tx-linux.git] / drivers / staging / netlogic / xlr_net.c
index e8aae09d16242b9fe08fc0ddec58372a67d9709d..8ae01753b011a39cd015f9e050eebd3f9cbc17ef 100644 (file)
@@ -1012,7 +1012,7 @@ static int xlr_net_probe(struct platform_device *pdev)
         * Allocate our adapter data structure and attach it to the device.
         */
        adapter = (struct xlr_adapter *)
-               devm_kzalloc(&pdev->dev, sizeof(adapter), GFP_KERNEL);
+               devm_kzalloc(&pdev->dev, sizeof(*adapter), GFP_KERNEL);
        if (!adapter) {
                err = -ENOMEM;
                return err;