From nobody Sun Dec 14 19:26:50 2025 Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B8612216E1B for ; Fri, 23 May 2025 16:00:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748016019; cv=none; b=n05c38F9Ixd4jRJ3C8OyVUko9JxSdnTZvNqn5xmwUlilXeGrxvqGWTUTLIQEQ5chMO2fZCf1arLrhDFgMdJWRymGC905zQrBeVY2vqQO0u7dVEaycyYoYq75QIl4cpQsrdkiv+mrtTUbZYm7vHtLFPUOFq2C4JDH6U3vMsQGBv8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748016019; c=relaxed/simple; bh=LvObJJaq5KUcG5iCKLaQBZwG/bqZeEkJJz5XwOHjrLM=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=ipURGHEUszyGecRL+2qPbPLssQkQENr159d7rlnZa50eTfnFQ7wG+3xMnDMg9VMCenFv3k0z2KqcMepJWfdtPBc3sGW0ne1YDAQ5j2JGvycSS6pRUyfxN2JQfSj67JHrZc9+YdE3ln3wRxnTE9WiiLruTJBWpITRiCdWl3EYCXY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=X7q6CYtP; arc=none smtp.client-ip=209.85.128.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="X7q6CYtP" Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-440685d6afcso98679515e9.0 for ; Fri, 23 May 2025 09:00:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1748016016; x=1748620816; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=WE/1otE+Iljvc13TDUh3vMrtfx4k08FjErn+ne3CuXQ=; b=X7q6CYtPqI8OvF+J51c5K9/EOGBOmCyl4XbBeIPf8suEdoZybYnQq88rcaBd6yLzWz SpH986Di/MCXTXOeDNNmbYxxZq/xqSCfIhPH/1U32dVpt4zSJaUk9/STZTiCIz8jZYe1 DjMWD7W4+5oL6j3+Kg0F9GjOCk+NEQlF6+WIDhWb309NGShqkADItvdBL7MEBQ/EzddW qWrO78sF2HVToYk5XrIUP15lYCAa1ZAyrV9pBg1/lYc4q5v2v6/2MZXbP9Gp5K2dvzXD bw9MlMUkTiS8KbMmra6zzBmXMTGcfuJhG5ofEaXqMuhBt6mn1VdOrqJ7pmVwSF1vGg2e hq2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748016016; x=1748620816; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=WE/1otE+Iljvc13TDUh3vMrtfx4k08FjErn+ne3CuXQ=; b=skPPJeBHGbNKRSM4c1KXo1yCUNFHIMLSV61GVt3x3RUnm/98yWiJRp+8StTiQBoGz0 T7PG/nMPI6QfJ3VhE9/Z7x7SQOctFxzntE6gevkwETqztC+PncxG9jCtEjHfJK082pnn 7CXOj/0j+pqcRiuzHR6M04UOJK2Kv5Hzs4E6uktjm1cKZTO7olnQ13jCjZILpQfFw/Mh 0ec2kZiIG9DkEdvMg20HuK/2Y4vP/VjkTpEVoBxvPssQjthjHfkuqTzrKgKgyMO7ShcB gkB3WySeUa4hv1fUGmBS0BJpCE8hGSKkz6w3qhM7eoPMw9ObRwJXCbekNmpgm/3Q3P4U mISA== X-Forwarded-Encrypted: i=1; AJvYcCXnYdG3CTQ4X3MkHKxbz3/e2pP1sypEonri/rbBMZFPRko6gGEyChUYKGMhfIvwCzlsFlEgMx3sidkU8XM=@vger.kernel.org X-Gm-Message-State: AOJu0Yzz4ujKxhugrr8UqvwbzC7/avFyCLmPYpbvtQ+LD1dubzoJoZRb grQxaaUc6dRkWGXqTvphTXL/cJ6eokZEoabfjcGjMmdDN2BohQFIPoTFQaMY1JnEiqM= X-Gm-Gg: ASbGncsua4kaU6xlzfTDDO6WgpMd0yRqkh1o1hcM/yOjz1aqgzECE4My6S1imsRxgci u/BwNqFLZyL1ozKiQ3POOPx7EuLDuQM8echiJPeQcxwS6pjFH4TK3oYLvryYQAsExUAxnQLd8GM 5qGpkTpGeXZV4Yf5JR0n2ObERS76EmjyQeY2Ip6ntocm3V7/xj3QR7EV62/hJCzBcP+gQyhAscQ +ykRgTTZSN6mrFr2xLleLVrUoDlzMrDDYBTlqLhht60d8sJsO5dIJK9sPwdY8HLzH8VyfDHF78z dTgs7yjs3YIFizof/y2aYWmBywlN1AzOsXPoANlNatKCrGjBAT1N4ACr X-Google-Smtp-Source: AGHT+IEW72aM5Tiovk6+jR6x6I4k/71EWX28cSp5QWzET2iJjFe3Mzu0nM+OSh1vusRA3SRVB++pPQ== X-Received: by 2002:a05:6000:1ac6:b0:3a4:79e8:cdee with SMTP id ffacd0b85a97d-3a479e8ce2amr9395354f8f.38.1748016015926; Fri, 23 May 2025 09:00:15 -0700 (PDT) Received: from localhost ([196.207.164.177]) by smtp.gmail.com with UTF8SMTPSA id ffacd0b85a97d-3a35ca4d310sm27195640f8f.17.2025.05.23.09.00.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 May 2025 09:00:15 -0700 (PDT) Date: Fri, 23 May 2025 19:00:12 +0300 From: Dan Carpenter To: Yevgeny Kliteynik Cc: Saeed Mahameed , Leon Romanovsky , Tariq Toukan , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Cosmin Ratiu , Mark Bloch , Vlad Dogaru , netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [PATCH net-next] net/mlx5: HWS, Fix an error code in mlx5hws_bwc_rule_create_complex() Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline X-Mailer: git-send-email haha only kidding Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This was intended to be negative -ENOMEM but the '-' character was left off accidentally. This typo doesn't affect runtime because the caller treats all non-zero returns the same. Fixes: 17e0accac577 ("net/mlx5: HWS, support complex matchers") Signed-off-by: Dan Carpenter Reviewed-by: Tariq Toukan Reviewed-by: Yevgeny Kliteynik --- .../net/ethernet/mellanox/mlx5/core/steering/hws/bwc_complex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/bwc_compl= ex.c b/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/bwc_complex.c index 5d30c5b094fc..70768953a4f6 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/bwc_complex.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/bwc_complex.c @@ -1188,7 +1188,7 @@ int mlx5hws_bwc_rule_create_complex(struct mlx5hws_bw= c_rule *bwc_rule, GFP_KERNEL); if (unlikely(!match_buf_2)) { mlx5hws_err(ctx, "Complex rule: failed allocating match_buf\n"); - ret =3D ENOMEM; + ret =3D -ENOMEM; goto hash_node_put; } =20 --=20 2.47.2