virtio_net: Obvious mistake in comparison for NULL

Signed-off-by: PulkoMandy <[email protected]>
This commit is contained in:
Viktor Müntzing
2016-01-14 21:17:53 +01:00
committed by PulkoMandy
parent 39002b213b
commit e280cbdb93
@@ -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];