Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754031AbbDUIS4 (ORCPT ); Tue, 21 Apr 2015 04:18:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41992 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752117AbbDUISD (ORCPT ); Tue, 21 Apr 2015 04:18:03 -0400 From: Vitaly Kuznetsov To: "K. Y. Srinivasan" Cc: Haiyang Zhang , devel@linuxdriverproject.org, linux-kernel@vger.kernel.org, Dexuan Cui Subject: [PATCH 3/3] Drivers: hv: vmbus: setup irq after synic is initialized Date: Tue, 21 Apr 2015 10:17:54 +0200 Message-Id: <1429604274-12537-4-git-send-email-vkuznets@redhat.com> In-Reply-To: <1429604274-12537-1-git-send-email-vkuznets@redhat.com> References: <1429604274-12537-1-git-send-email-vkuznets@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1002 Lines: 36 vmbus_isr() uses synic pages which are being setup in hv_synic_alloc(), we need to register this irq handler only after we allocate all the required pages. Signed-off-by: Vitaly Kuznetsov --- drivers/hv/vmbus_drv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index cf20400..e922804 100644 --- a/drivers/hv/vmbus_drv.c +++ b/drivers/hv/vmbus_drv.c @@ -822,11 +822,12 @@ static int vmbus_bus_init(int irq) if (ret) goto err_cleanup; - hv_setup_vmbus_irq(vmbus_isr); - ret = hv_synic_alloc(); if (ret) goto err_alloc; + + hv_setup_vmbus_irq(vmbus_isr); + /* * Initialize the per-cpu interrupt state and * connect to the host. -- 1.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/