Message ID | 20210608175928.184179568@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:735a:0:0:0:0:0 with SMTP id a26csp3995135jae; Tue, 8 Jun 2021 11:31:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkQHxSVTWpXPPDL9Tmo85bzoCdp6/kPJxoV4oghOuxJ65w0fGBbJqNomcgbzgcw51rPZPJ X-Received: by 2002:a50:bb6a:: with SMTP id y97mr27172080ede.345.1623177067242; Tue, 08 Jun 2021 11:31:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623177067; cv=none; d=google.com; s=arc-20160816; b=ZRfabtDEjH6we1whwv4fx/xb/iNdokgQQg7PJcoI0n9WCQkWgZZURz9zqgHJ+IC/LX 6HQKKyGGzv8SioQZGj4HWZqnr/VTeYnEKDzgkQFlpALkb00lgET+aoOE4zAMiR+2ueOy DHs58FYvEsSaTVdrvgrqMZr3UdJ2kVgNReMG+pdZrsUpJmKikbb7CgOJUZaFme8aI5d4 4ggZ17ynpAMCBzv34+tcGZi6OWCRpIYIqBofgq91tfbphn3YmhUyr3a5kxsVE5EsUZHo QdOp2kiZbAlxrP/jjIFhx5y8WQJ0bnRn8L7Q9oUI0xJHT1R+fLL+IAzCu3MKVEurNkVM YjgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=fQlo6ak4GDGJ0MEacg3BDQ2NACjQKOPvwxbcAQUOB3E=; b=QBy6H+HfxoFHIpVJFLSLSCYC+6mZBPv5wqVxF/D1xjeo8Eub0d7Ysm3H76wPHjFDGT /vYUfU1WU7nVhZQMpqBMP5rOdNENw3h+jjXLDwARFVl6Dtd7tl9CYzITSX5NvXcP+xhF S6MuveFwL6sAY+vtnnzYBfUv3lmAbLeEtwSuuzhUUhLjsNW8bpvLJk5wkpFlCKdY5cX6 N2DEQ1Eo2tInYXkFaRmZzB6dfs0iqChBpBTLiUNwu3uO3F9isSVRsH2ougJdtXpGHfpL PUR9CdoJ+yrFJWJjE683a2lpDiujFpv21kVlDe6wRzlQFK8LQURahzoqt4BB90nOG3jX 5mAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=i2rZuXdj; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: <stable-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e17si416787ejm.271.2021.06.08.11.31.07; Tue, 08 Jun 2021 11:31:07 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=i2rZuXdj; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234332AbhFHSc6 (ORCPT <rfc822;semen.protsenko@linaro.org> + 12 others); Tue, 8 Jun 2021 14:32:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:57434 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234342AbhFHScL (ORCPT <rfc822;stable@vger.kernel.org>); Tue, 8 Jun 2021 14:32:11 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6E82A613CA; Tue, 8 Jun 2021 18:30:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623177018; bh=cq+BDAlz6yVWbPDX5SFSPBUVhukvOyz3I7Ra/jMwicA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=i2rZuXdjrWZuWTGEUOZ12XpVvIyWodtZMpIo3WAIw3vKDE2yK41JygYkZTeTcoIFn XlZWk1sF0GlXYomY1QvL8Yg4AE9Yq/naKswSB2kRgrQQikWl1cLN3LOn/LRk+Yf1x5 yLOsmQD/3yUn7KVdH1zQsbJzWQknPhcSGUx/jPMc= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Hulk Robot <hulkci@huawei.com>, Zhen Lei <thunder.leizhen@huawei.com>, Stefan Schmidt <stefan@datenfreihafen.org>, Sasha Levin <sashal@kernel.org> Subject: [PATCH 4.9 11/29] ieee802154: fix error return code in ieee802154_add_iface() Date: Tue, 8 Jun 2021 20:27:05 +0200 Message-Id: <20210608175928.184179568@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210608175927.821075974@linuxfoundation.org> References: <20210608175927.821075974@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/net/ieee802154/nl-phy.c b/net/ieee802154/nl-phy.c index 77d73014bde3..11f53dc0c1c0 100644 --- a/net/ieee802154/nl-phy.c +++ b/net/ieee802154/nl-phy.c @@ -249,8 +249,10 @@ int ieee802154_add_iface(struct sk_buff *skb, struct genl_info *info) } if (nla_put_string(msg, IEEE802154_ATTR_PHY_NAME, wpan_phy_name(phy)) || - nla_put_string(msg, IEEE802154_ATTR_DEV_NAME, dev->name)) + nla_put_string(msg, IEEE802154_ATTR_DEV_NAME, dev->name)) { + rc = -EMSGSIZE; goto nla_put_failure; + } dev_put(dev); wpan_phy_put(phy);