diff options
author | Anton Vasilyev <vasilyev@ispras.ru> | 2018-08-06 19:06:35 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-08-10 23:12:43 +0200 |
commit | 504c76979bccec66e4c2e41f6a006e49e284466f (patch) | |
tree | 3382955b0359f03dd734682295b2bd628e339d9b /drivers/scsi/mpt3sas/mpt3sas_base.c | |
parent | 01f1974e5f08732de6cecc4287788a99cfc3b325 (diff) |
pinctrl: axp209: Fix NULL pointer dereference after allocation
There is no check that allocation in axp20x_funcs_groups_from_mask
is successful.
The patch adds corresponding check and return values.
Found by Linux Driver Verification project (linuxtesting.org).
Signed-off-by: Anton Vasilyev <vasilyev@ispras.ru>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/scsi/mpt3sas/mpt3sas_base.c')
0 files changed, 0 insertions, 0 deletions