]> asedeno.scripts.mit.edu Git - linux.git/commit
mailbox: bcm2835: Fix of_xlate return value
authorStefan Wahren <stefan.wahren@i2se.com>
Sat, 26 May 2018 10:24:00 +0000 (12:24 +0200)
committerJassi Brar <jaswinder.singh@linaro.org>
Wed, 6 Jun 2018 16:51:59 +0000 (22:21 +0530)
commit00ee3a13a91be0ac250b89873043a3d2508f1208
treead3f45f4b2adf09230294f5255057f848c699343
parent61a2f6db77ab119930910bad0d507d680bdf0d77
mailbox: bcm2835: Fix of_xlate return value

The bcm2835-mailbox returns NULL instead of an error pointer, which could
result in a NULL ptr dereference in mbox_request_channel. So fix this
by returning a proper error pointer.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Fixes: 0bae6af6d704 ("mailbox: Enable BCM2835 mailbox support")
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/bcm2835-mailbox.c