summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHoulong Wei <houlong.wei@mediatek.com>2018-08-21 18:22:44 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-01-27 14:49:56 +0100
commite60f60a4cde824604299cb60e83d623b78326ee5 (patch)
treef19160feaf05df8a7dd89b884f6473bea7924ce8 /include
parent08e7931218521d61594e5b2ba9dea68dd9a3f13b (diff)
mailbox: mediatek: Add check for possible failure of kzalloc
[ Upstream commit 9f0a0a381c5db56e7922dbeea6831f27db58372f ] The patch 623a6143a845("mailbox: mediatek: Add Mediatek CMDQ driver") introduce the following static checker warning: drivers/mailbox/mtk-cmdq-mailbox.c:366 cmdq_mbox_send_data() error: potential null dereference 'task'. (kzalloc returns null) Fixes: 623a6143a845 ("mailbox: mediatek: Add Mediatek CMDQ driver") Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Houlong Wei <houlong.wei@mediatek.com> Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions