staging: bcm2835-audio: Need to judge the return value of vchi_msg_dequeue in audio_v...
authorzhengbin <zhengbin13@huawei.com>
Tue, 8 Oct 2019 07:41:50 +0000 (15:41 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Oct 2019 12:52:55 +0000 (14:52 +0200)
commit5193dbdaf0b07a46b6659c7a38c80c947f7ab732
treeab2f43d3729dd12c12b333f29ec6efe34f4303a7
parent17a29fea086ba18b000d28439bd5cb4f2b0a527b
staging: bcm2835-audio: Need to judge the return value of vchi_msg_dequeue in audio_vchi_callback

If vchi_msg_dequeue return -1, variable m is not assigined,
need to return.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/1570520515-2186-2-git-send-email-zhengbin13@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c