Drivers: hv : vmbus: Adding NULL pointer check
authorLv Ruyi <lv.ruyi@zte.com.cn>
Thu, 28 Oct 2021 10:41:38 +0000 (10:41 +0000)
committerWei Liu <wei.liu@kernel.org>
Thu, 28 Oct 2021 11:40:32 +0000 (11:40 +0000)
commit01ccca3cb50dcff7eea01448af985a49859b8a1d
treeda3018a594e3fd0e4ac37c5f07ae2b4ab2f8f2d8
parent0b9060852344cdaa3b415f807943d71e488c4eec
Drivers: hv : vmbus: Adding NULL pointer check

This patch fixes the following Coccinelle warning:
drivers/hv/ring_buffer.c:223: alloc with no test

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Lv Ruyi <lv.ruyi@zte.com.cn>
Link: https://lore.kernel.org/r/20211028104138.14576-1-lv.ruyi@zte.com.cn
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/ring_buffer.c