1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

hyperv/vmbus: Zero out GPADL if error happens.

MFC after:	1 week
Sponsored by:	Microsoft
Differential Revision:	https://reviews.freebsd.org/D8601
This commit is contained in:
Sepherosa Ziehau 2016-11-28 04:53:36 +00:00
parent 0ffc652e9e
commit faaba341e5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=309224

View File

@ -502,6 +502,12 @@ vmbus_chan_gpadl_connect(struct vmbus_channel *chan, bus_addr_t paddr,
int page_count, range_len, i, cnt, error;
uint64_t page_id;
/*
* Reset GPADL, so that the result would consistent, if error
* happened later on.
*/
*gpadl0 = 0;
/*
* Preliminary checks.
*/