Re: [PATCH] mailbox: mediatek: Add check for possible failure of kzalloc

2018-08-21 Thread Philipp Zabel
On Tue, 2018-08-21 at 18:22 +0800, Houlong Wei wrote: > 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

Re: [PATCH] mailbox: mediatek: Add check for possible failure of kzalloc

2018-08-21 Thread Philipp Zabel
On Tue, 2018-08-21 at 18:22 +0800, Houlong Wei wrote: > 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

[PATCH] mailbox: mediatek: Add check for possible failure of kzalloc

2018-08-21 Thread Houlong Wei
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

[PATCH] mailbox: mediatek: Add check for possible failure of kzalloc

2018-08-21 Thread Houlong Wei
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