diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-06-06 14:43:38 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-06-18 07:55:56 +0200 |
commit | 7f57871f39912978e95db920ddbbfb2304a4bfbf (patch) | |
tree | e3c35483aa91dc6a39f263c6a36ca7056f2721a2 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | bc3322bc166a2905bc91f774d7b22773dc7c063a (diff) |
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 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions