commit | 49af64e6b52208219d008cd445ca09c07a965105 | [log] [tgz] |
---|---|---|
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | Sat May 06 10:23:59 2017 +0200 |
committer | Linus Walleij <linus.walleij@linaro.org> | Mon May 22 10:39:25 2017 +0200 |
tree | a9df9d63e06616375260c77f58ae137df8895c81 | |
parent | ceba43834d1059b460cd05f92eff08c3fe5627f4 [diff] |
pinctrl: imx: Check for memory allocation failure If 'devm_kzalloc' fails, a NULL pointer will be dereferenced. Return -ENOMEM instead, as done for the other memory allocation just a few lines below. BTW, change the 'devm_kzalloc' into a 'devm_kcalloc'. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>