diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2025-04-23 11:23:15 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2025-04-23 13:58:57 +0300 |
commit | 446d28584723e5d4bcdb18cf6ef87cb2bb597dd8 (patch) | |
tree | f01494df7faa35d71fef92a3542de7a3a60d6e66 /drivers/fpga/tests/fpga-bridge-test.c | |
parent | 34024cf69c51b11c2b608f5d578626b9b1c484f5 (diff) | |
download | linux-446d28584723e5d4bcdb18cf6ef87cb2bb597dd8.tar.xz |
pinctrl: mediatek: common-v1: Fix error checking in mtk_eint_init()
The devm_kzalloc() function doesn't return error pointers, it returns
NULL on error. Then on the next line it checks the same pointer again
by mistake, "->base" instead of "->base[0]".
Fixes: fe412e3a6c97 ("pinctrl: mediatek: common-v1: Fix EINT breakage on older controllers")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/aAijc10fHka1WAMX@stanley.mountain
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/fpga/tests/fpga-bridge-test.c')
0 files changed, 0 insertions, 0 deletions