From patchwork Tue Jun 20 17:27:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcelo Henrique Cerri X-Patchwork-Id: 778422 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id 3wsZYX4s6hz9s7m; Wed, 21 Jun 2017 03:28:00 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical-com.20150623.gappssmtp.com header.i=@canonical-com.20150623.gappssmtp.com header.b="lGKAyPHD"; dkim-atps=neutral Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1dNMwX-0001eM-VM; Tue, 20 Jun 2017 17:27:57 +0000 Received: from mail-ua0-f178.google.com ([209.85.217.178]) by huckleberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1dNMwM-0001aM-9v for kernel-team@lists.ubuntu.com; Tue, 20 Jun 2017 17:27:46 +0000 Received: by mail-ua0-f178.google.com with SMTP id j53so74963165uaa.2 for ; Tue, 20 Jun 2017 10:27:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=sjnlOYrIQWg+RwLZwTXYDuTjVhFgE7OYMtvNyKh3jQY=; b=lGKAyPHDT3hf0HUM1O9Uh6/maf5Rid0bbLXJ9Dbs/jINZpmxvkpluZZ+V+fDl2s72+ tQuuY/q9K+qvC+w4GJrzC/y7lRKVOBcryGjcf8n2GRxUfvMcyh6T68K9epvhNo3h4tIP xZxGo6ibTsgBO/fT0oIvb/LkPH+zC/RRYh9SZMTN538qe7GELceNo0JWmGmlT81Jcsyo NIs7zGnqNOrOOJSiNcppNYXNwDs6LunlpxmN9UsULF3k3nGnadfrHG+cknJT6LnTXI2w IWKpgeAlCpLLn9axnmdTQek8iKnBBhMr5H4HR7QCptIAsMVLF/WBJoWAaALuagsC2CdF t2bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=sjnlOYrIQWg+RwLZwTXYDuTjVhFgE7OYMtvNyKh3jQY=; b=m8C0SiykgXcSQPFaZS+Jh7AumWaf6Xt1CrZ+62FMLCn4lVYmc2ywpA5Vfn0pjprH+8 RrGzx+ZRTcuGXee89Oq+2VWNchoWGID8a6adizCfRXNy1J4wXMi2smut5YbEPGTilkAz mnqzJgkAcPQcnNJSWvpU5pADL774Yeh6vl9mOIDOloy6K1uXU/+krAEhvz2tcqn9hMfs kDhvLRWnryYmF3PE6L1xZUs8r+8Ac9ruDLHu7Xcdeu9OkbmBISDlRATrd7Giw1tHgKAf 4aqx3rw0yz7N65YxRssnKaJdh7yZB4JCK6M6vreVtUiI4dCXRcIx5RA1OE7JI1Jliepd FGeg== X-Gm-Message-State: AKS2vOwSoB9nw7P4cQKN8MJusURVY2xTZ/s10rlAaVip8HwmfFTxCk6j PXHwArSt35YiD9dULDE= X-Received: by 10.159.60.4 with SMTP id u4mr19514299uah.154.1497979665094; Tue, 20 Jun 2017 10:27:45 -0700 (PDT) Received: from localhost.localdomain ([191.8.96.73]) by smtp.gmail.com with ESMTPSA id x2sm4922955vkd.35.2017.06.20.10.27.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Jun 2017 10:27:44 -0700 (PDT) From: Marcelo Henrique Cerri To: kernel-team@lists.ubuntu.com Subject: [azure][PATCH 01/14] UBUNTU: SAUCE: vmbus: vmbus_open(): reset onchannel_callback on error Date: Tue, 20 Jun 2017 14:27:21 -0300 Message-Id: <1497979654-27251-2-git-send-email-marcelo.cerri@canonical.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497979654-27251-1-git-send-email-marcelo.cerri@canonical.com> References: <1497979654-27251-1-git-send-email-marcelo.cerri@canonical.com> Cc: "K . Y . Srinivasan" , Dexuan Cui , Cheng-mean Liu X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.14 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: kernel-team-bounces@lists.ubuntu.com From: Dexuan Cui BugLink: http://bugs.launchpad.net/bugs/1698425 No real issue is observed without the patch, but let's add this just in case. Signed-off-by: Dexuan Cui Cc: K. Y. Srinivasan Cc: Haiyang Zhang Cc: Stephen Hemminger Signed-off-by: Marcelo Henrique Cerri --- drivers/hv/channel.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/hv/channel.c b/drivers/hv/channel.c index 736ac76d2a6a..5f91e6b8eb01 100644 --- a/drivers/hv/channel.c +++ b/drivers/hv/channel.c @@ -220,6 +220,8 @@ int vmbus_open(struct vmbus_channel *newchannel, u32 send_ringbuffer_size, get_order(send_ringbuffer_size + recv_ringbuffer_size)); error_set_chnstate: newchannel->state = CHANNEL_OPEN_STATE; + newchannel->onchannel_callback = NULL; + newchannel->channel_callback_context = NULL; return err; } EXPORT_SYMBOL_GPL(vmbus_open);