hyperv/vmbus: Check hyperv_dmamem_alloc return value
authorsephe <sephe@FreeBSD.org>
Wed, 25 May 2016 03:30:56 +0000 (03:30 +0000)
committersephe <sephe@FreeBSD.org>
Wed, 25 May 2016 03:30:56 +0000 (03:30 +0000)
commitd75fddcdf511f78cdb064b17d0740fb7959b77cd
tree1422fbb938c2ee84559763ea57c0f3f447f0c4da
parent36fa61883428b677cc1cbf35c851cf4dbbf4990b
hyperv/vmbus: Check hyperv_dmamem_alloc return value

Though it is highly unlikely this function would fail w/ BUS_DMA_WAITOK,
we had better to check its return value; better safe then sorry here.

MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D6518
sys/dev/hyperv/vmbus/hv_vmbus_drv_freebsd.c