summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/freescale/pinctrl-imx50.c
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2017-05-06 10:23:59 +0200
committerLinus Walleij <linus.walleij@linaro.org>2017-05-22 10:39:25 +0200
commit49af64e6b52208219d008cd445ca09c07a965105 (patch)
treea9df9d63e06616375260c77f58ae137df8895c81 /drivers/pinctrl/freescale/pinctrl-imx50.c
parentpinctrl: mediatek: reuse pinctrl driver for mt7623 (diff)
downloadlinux-49af64e6b52208219d008cd445ca09c07a965105.tar.xz
linux-49af64e6b52208219d008cd445ca09c07a965105.zip
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>
Diffstat (limited to 'drivers/pinctrl/freescale/pinctrl-imx50.c')
0 files changed, 0 insertions, 0 deletions