Message ID | 99be080aea6c35b92aea3b9ea37ea050271e938a.1544477525.git.joseph.salisbury@canonical.com |
---|---|
State | New |
Headers | show |
Series | [SRU,Cosmic,1/2] Drivers: hv: vmbus: check the creation_status in vmbus_establish_gpadl() | expand |
diff --git a/drivers/hv/channel.c b/drivers/hv/channel.c index c394922..5898669 100644 --- a/drivers/hv/channel.c +++ b/drivers/hv/channel.c @@ -469,6 +469,14 @@ int vmbus_establish_gpadl(struct vmbus_channel *channel, void *kbuffer, } wait_for_completion(&msginfo->waitevent); + if (msginfo->response.gpadl_created.creation_status != 0) { + pr_err("Failed to establish GPADL: err = 0x%x\n", + msginfo->response.gpadl_created.creation_status); + + ret = -EDQUOT; + goto cleanup; + } + if (channel->rescind) { ret = -ENODEV; goto cleanup;