]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
pinctrl: mvebu: testing the wrong variable
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 26 Aug 2013 16:36:38 +0000 (19:36 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 28 Aug 2013 12:35:44 +0000 (14:35 +0200)
We wanted to test "*map" here instead of "map".

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mvebu/pinctrl-mvebu.c

index 362446508c90817a4a4d63dc06af3836d5037783..0fd1ad31fbf9aa719d19dffb7f18cc61194d2984 100644 (file)
@@ -444,7 +444,7 @@ static int mvebu_pinctrl_dt_node_to_map(struct pinctrl_dev *pctldev,
        }
 
        *map = kmalloc(nmaps * sizeof(struct pinctrl_map), GFP_KERNEL);
-       if (map == NULL) {
+       if (*map == NULL) {
                dev_err(pctl->dev,
                        "cannot allocate pinctrl_map memory for %s\n",
                        np->name);