From e280cbdb93b8abf68384e192d51131b73301039d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20M=C3=BCntzing?= Date: Mon, 11 Jan 2016 20:26:12 +0100 Subject: [PATCH] virtio_net: Obvious mistake in comparison for NULL Signed-off-by: PulkoMandy --- src/add-ons/kernel/drivers/network/virtio/virtio_net.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add-ons/kernel/drivers/network/virtio/virtio_net.cpp b/src/add-ons/kernel/drivers/network/virtio/virtio_net.cpp index 4a6a66e3a5..0f8c4cc554 100644 --- a/src/add-ons/kernel/drivers/network/virtio/virtio_net.cpp +++ b/src/add-ons/kernel/drivers/network/virtio/virtio_net.cpp @@ -160,7 +160,7 @@ virtio_net_init_device(void* _info, void** _cookie) info->receive_queues = new(std::nothrow) virtio_queue[info->pairs_count]; info->send_queues = new(std::nothrow) virtio_queue[info->pairs_count]; - if (info->receive_queues == NULL || info->receive_queues == NULL) + if (info->receive_queues == NULL || info->send_queues == NULL) return B_NO_MEMORY; for (uint32 i = 0; i < info->pairs_count; i++) { info->receive_queues[i] = virtioQueues[i * 2];