Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933458AbbLOQzU (ORCPT ); Tue, 15 Dec 2015 11:55:20 -0500 Received: from shards.monkeyblade.net ([149.20.54.216]:46990 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753925AbbLOQzT (ORCPT ); Tue, 15 Dec 2015 11:55:19 -0500 Date: Tue, 15 Dec 2015 11:55:16 -0500 (EST) Message-Id: <20151215.115516.1151100457916943363.davem@davemloft.net> To: ogerlitz@mellanox.com Cc: a.hajda@samsung.com, jackm@dev.mellanox.co.il, b.zolnierkie@samsung.com, m.szyprowski@samsung.com, eranbe@mellanox.com, hadarh@mellanox.com, monis@mellanox.com, yishaih@mellanox.com, maorg@mellanox.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net/mlx4_core: fix handling return value of mlx4_slave_convert_port From: David Miller In-Reply-To: <566FD8D4.5030506@mellanox.com> References: <1450087564-28441-1-git-send-email-a.hajda@samsung.com> <566FD8D4.5030506@mellanox.com> X-Mailer: Mew version 6.6 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 15 Dec 2015 08:55:18 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 918 Lines: 29 From: Or Gerlitz Date: Tue, 15 Dec 2015 11:09:40 +0200 > On 12/14/2015 12:05 PM, Andrzej Hajda wrote: >> The function can return negative values, so its result should >> be assigned to signed variable. >> >> The problem has been detected using proposed semantic patch >> scripts/coccinelle/tests/assign_signed_to_unsigned.cocci [1]. >> >> [1]: http://permalink.gmane.org/gmane.linux.kernel/2046107 >> > > Please add here > > Fixes: fc48866f7 ('net/mlx4: Adapt code for N-Port VF') > >> Signed-off-by: Andrzej Hajda > > otherwise, Looks good > > Acked-by: Or Gerlitz Applied with Fixes tag added. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/