summaryrefslogtreecommitdiff
path: root/drivers/mailbox/mailbox.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzk@kernel.org>2020-08-27 10:31:28 +0300
committerJassi Brar <jaswinder.singh@linaro.org>2020-10-13 05:10:34 +0300
commit558e4c36ec9f2722af4fe8ef84dc812bcdb5c43a (patch)
treea4c90680ab1344f8f50125d09bc3c10b6fff424a /drivers/mailbox/mailbox.c
parent7002ca237b216d651d032439c45dc664f1f955bb (diff)
downloadlinux-558e4c36ec9f2722af4fe8ef84dc812bcdb5c43a.tar.xz
maiblox: mediatek: Fix handling of platform_get_irq() error
platform_get_irq() returns -ERRNO on error. In such case casting to u32 and comparing to 0 would pass the check. Fixes: 623a6143a845 ("mailbox: mediatek: Add Mediatek CMDQ driver") Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Diffstat (limited to 'drivers/mailbox/mailbox.c')
0 files changed, 0 insertions, 0 deletions