Index: hw/mlx4/kernel/hca/pd.c
===================================================================
--- hw/mlx4/kernel/hca/pd.c	(revision 3414)
+++ hw/mlx4/kernel/hca/pd.c	(working copy)
@@ -78,9 +78,8 @@
 				0, sizeof(p_resp->pdn));
 		}
 		else {
-			u32 pdn;
-			INIT_UDATA(&udata, NULL, &pdn, 
-				0, sizeof(pdn));
+            // Discard PDN output, so use status as temp storage.
+            INIT_UDATA(&udata, NULL, &status, 0, sizeof(status));
 		}
 	}
 	else {
