diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-06-06 15:43:38 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-06-18 07:55:56 +0200 |
commit | 7f57871f39912978e95db920ddbbfb2304a4bfbf (patch) | |
tree | e3c35483aa91dc6a39f263c6a36ca7056f2721a2 /crypto/fcrypt.c | |
parent | pinctrl: devicetree: Fix pctldev pointer overwrite (diff) | |
download | linux-7f57871f39912978e95db920ddbbfb2304a4bfbf.tar.xz linux-7f57871f39912978e95db920ddbbfb2304a4bfbf.zip |
pinctrl: single: Add allocation failure checking of saved_vals
Currently saved_vals is being allocated and there is no check for
failed allocation (which is more likely than normal when using
GFP_ATOMIC). Fix this by checking for a failed allocation and
propagating this error return down the the caller chain.
Detected by CoverityScan, CID#1469841 ("Dereference null return value")
Fixes: 88a1dbdec682 ("pinctrl: pinctrl-single: Add functions to save and restore pinctrl context")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Johan Hovold <johan@kernel.org>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'crypto/fcrypt.c')
0 files changed, 0 insertions, 0 deletions