Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1261707imu; Thu, 13 Dec 2018 12:02:41 -0800 (PST) X-Google-Smtp-Source: AFSGD/X3CTsw7uqFEIz12HtuzYzSSZ+V2XXHczJbgHgIM5IOn7BSGFjOWwXFbvOvvMvFbI88b23h X-Received: by 2002:a63:7154:: with SMTP id b20mr160238pgn.342.1544731361023; Thu, 13 Dec 2018 12:02:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544731360; cv=none; d=google.com; s=arc-20160816; b=h8SJ+w7o9oXcsyQNqzS4ZbJWGbpx0wXUT/6yPxYqiILjKBHVqVFqJM43DvEU2UWGDC pgwmjtdjx+M1Lfmtm2yYqYg1zk0aHYPjSVFUmZrRn3rnECa8riTz3AO6TdsaWCdNFPGQ KHGn6qpg0jIDLIN91mHzq9ndsHR/dIBAcUCi2uGxKhYDIrGFZ8oK3w0k1gNvvaivWU8v Rd1THY943bGU3mRSohP8jHM5HqrGA/IKTGHNwKh7yFFMNPOvw/7WTNVJ/Im88QKSZ1Vm CJjVHOTZVQ9HWRLlGH3zo/9Q3vX7A9E5k/xSUoVdHJwy/eG/fZiRDAIu+t8fliybuFL3 2Qnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=+U0xK0aZyzqE88zIoPECx8eDRwonMiP3VRZN9KpKEYM=; b=gHQKxi2VtBr2eusDLt8gPLhzbBppidtJgLVi/CY1O05OrZRkETTETWzN9G43IrewZN BQjBhqVFMVBfTgnqAeszKo1fBX25/D+o5sEKC1xQBqZwP+z0zjuozd04L8Hsobqjsp5E T60D27YtpGA/d6t4tDFPdVEdIB1d7ZFjxeUPEs1+nbmQgxgV6J7UzlVRw5uFY4ieCe7e zSkaviHgqBj7TQ4giYp+wajKuTVsVBLlLS61DAtCEo2a36izIyewc06MDDujI1zVoEvN EDAA+NNkQ/FLh68NlfkMLj0TLX0l1KqNVUk2tS7mxrH1qVBTcY2YgReEMVUtqGkVAaBX G2CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Vrb6XUwO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j39si2219309plb.272.2018.12.13.12.02.10; Thu, 13 Dec 2018 12:02:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Vrb6XUwO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728993AbeLMT70 (ORCPT + 99 others); Thu, 13 Dec 2018 14:59:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:43398 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728252AbeLMT70 (ORCPT ); Thu, 13 Dec 2018 14:59:26 -0500 Received: from localhost (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 502AF20811; Thu, 13 Dec 2018 19:59:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544731165; bh=+U0xK0aZyzqE88zIoPECx8eDRwonMiP3VRZN9KpKEYM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Vrb6XUwOyBVH+qTD7Fzvu89DDgxxsBjQgaldP5/p7VRID8Y9Y9WnxL3DvIUxDVPzm JwrZTiR+369r4iM6vDDbymfJsSrvrYDrpwekJkLsEguAns3zaN3xSMoXWw5qyE02XA J5C8qYFcvw2x1tjprU5pHvUXLoY368fMAXMZ3NgI= Date: Thu, 13 Dec 2018 14:59:23 -0500 From: Sasha Levin To: Dexuan Cui Cc: "'gregkh@linuxfoundation.org'" , KY Srinivasan , Haiyang Zhang , Stephen Hemminger , "'linux-kernel@vger.kernel.org'" , "'devel@linuxdriverproject.org'" , Sasha Levin , "'apw@canonical.com'" , vkuznets , "'olaf@aepfle.de'" , "'jasowang@redhat.com'" , Michael Kelley Subject: Re: [PATCH] Drivers: hv: vmbus: Return -EINVAL for the sys files for unopened channels Message-ID: <20181213195923.GL2746@sasha-vm> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 13, 2018 at 04:35:43PM +0000, Dexuan Cui wrote: > >Before 98f4c651762c, we returned zeros for unopened channels. >With 98f4c651762c, we started to return random on-stack values. > >We'd better return -EINVAL instead. > >Fixes: 98f4c651762c ("hv: move ringbuffer bus attributes to dev_groups") >Cc: stable@vger.kernel.org >Cc: K. Y. Srinivasan >Cc: Haiyang Zhang >Cc: Stephen Hemminger >Signed-off-by: Dexuan Cui Queued up, thank you. -- Thanks, Sasha