summaryrefslogtreecommitdiffstats
path: root/crypto/fcrypt.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-06-06 15:43:38 +0200
committerLinus Walleij <linus.walleij@linaro.org>2018-06-18 07:55:56 +0200
commit7f57871f39912978e95db920ddbbfb2304a4bfbf (patch)
treee3c35483aa91dc6a39f263c6a36ca7056f2721a2 /crypto/fcrypt.c
parentpinctrl: devicetree: Fix pctldev pointer overwrite (diff)
downloadlinux-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