From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (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 A99C428382 for ; Fri, 23 May 2025 16:00:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748016020; cv=none; b=KTfb9gPJNScdS4ngjhdHI3beFXNNSK0EfW9LaMWA7tbO6OiX9EsMs06x6dnBMZbLegAadxJaSV2mJNrZeN1Rw7gdZdVS+iIJxqk2YRCVfAhms4sPz+IjNgH0GMct4whHc4Tlrbo71eX14toQ+FmSV6jYEAHy2iMBewt7lNxft7A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748016020; c=relaxed/simple; bh=LvObJJaq5KUcG5iCKLaQBZwG/bqZeEkJJz5XwOHjrLM=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=QaHJBZWoE48MXjoQqX4AKDK5IxdnYjw6Waj1Vz8klydJt1R29f3cxFZe1CSRu5td1usXZ9mRhwLRpoCSUGGpt24BO1jgVrzTvyh34b1gkJF9B+bI5lYUHn4t96xNRdiGdAvEp3gbcrdBxQdeVa7HavzjIW4P4/iTmJCTUzuBYCg= 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.221.54 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-wr1-f54.google.com with SMTP id ffacd0b85a97d-3a4c95fc276so70111f8f.3 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=V9Te+qCqKPIm/alZEeZypm+OjuKawpblkDf9FNgj1czu3kVsbA/wQHRLLk/0ZrgTrr IalJVUoR6pwA8b/F+LBoIOVxgpsJ9nvP0C9RrhD00LT363L0cgbmp3oQFhVlSPG/zBi2 pYCs2CSB8H/OdHepNcfHo6HlQm7AOq8Ok/VvLuc1T2LmpaPuV7ww8Zj4NSDF/yXA50we 1S9uAYPMh1pZJ6Nmf/mcKjvjvUp5PBJJ12EaLLwCumhsFqh7SPTLeSbTGl2y7of/DU8+ BcOso/MTGFBID1FNMS3IRvrcz218TUT9FMlUQnxM7lIBrl8S7Old+VyAkW1ZVZwCiOLk duUA== X-Forwarded-Encrypted: i=1; AJvYcCWQzpWFLlGXIqyYqH3LnSi8kicpqpK54EphL58DoguXiL20P62Pv9xQVxoCSouVZce5JJdRE68=@vger.kernel.org X-Gm-Message-State: AOJu0YxDnGTp3k2WkyMrpsYvHgGa+FHpmcNFnGMRPuMejKmWB1N86BZe Tc+6y4fRZbc6u3zRzRlgXNTdDlzxVeegrHGvbz7BRnLVKUDo3aTgzhXU3d0SFBHVzFU= X-Gm-Gg: ASbGncswp2Tp37zriZZl9U29njHTbFXb064iWmbpBsgnxSngMavwyCVLG7QPUO7D1C/ xv5odT9Mc6t6QSeLK35RFIdmnMqAqaIoeLnM4T2IIjyhqbCS65GaTgaE2MUG+RxNiAdg3hiHen/ Go9I+5bfqKqECWwuzgs+4z6OR+5hAJRXOp6e0CrmmbyayyZXT12zzZtT+C5Nak9ymFrX5mo9ETr ycKLBsa/uggbZH5K721wC07gTENWHeJ+g2mUcx9t5zSCQAYtQ0rT/V+6Rx+eLlJIQsyP9Mvhqia Vr2V5mBCjTF1enbd5xzW7SYLRKnl50u4TCFZpHEVPFro5A3UC0piNwUt 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: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Mailer: git-send-email haha only kidding 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 --- .../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_complex.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_bwc_rule *bwc_rule, GFP_KERNEL); if (unlikely(!match_buf_2)) { mlx5hws_err(ctx, "Complex rule: failed allocating match_buf\n"); - ret = ENOMEM; + ret = -ENOMEM; goto hash_node_put; } -- 2.47.2