Author: sephe
Date: Mon Nov 28 04:53:36 2016
New Revision: 309224
URL: https://svnweb.freebsd.org/changeset/base/309224

Log:
  hyperv/vmbus: Zero out GPADL if error happens.
  
  MFC after:    1 week
  Sponsored by: Microsoft
  Differential Revision:        https://reviews.freebsd.org/D8601

Modified:
  head/sys/dev/hyperv/vmbus/vmbus_chan.c

Modified: head/sys/dev/hyperv/vmbus/vmbus_chan.c
==============================================================================
--- head/sys/dev/hyperv/vmbus/vmbus_chan.c      Mon Nov 28 02:59:33 2016        
(r309223)
+++ head/sys/dev/hyperv/vmbus/vmbus_chan.c      Mon Nov 28 04:53:36 2016        
(r309224)
@@ -503,6 +503,12 @@ vmbus_chan_gpadl_connect(struct vmbus_ch
        uint64_t page_id;
 
        /*
+        * Reset GPADL, so that the result would consistent, if error
+        * happened later on.
+        */
+       *gpadl0 = 0;
+
+       /*
         * Preliminary checks.
         */
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to