Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp5051662ima; Tue, 5 Feb 2019 05:43:32 -0800 (PST) X-Google-Smtp-Source: AHgI3IYeYksO0Fb0WsuIy1IYMrnrzK5gjnop6ese8k3+XIUhXf0tUrWbtTdS/NTdTlM3K5QFmv8z X-Received: by 2002:a65:6491:: with SMTP id e17mr4593806pgv.418.1549374212484; Tue, 05 Feb 2019 05:43:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549374212; cv=none; d=google.com; s=arc-20160816; b=ExbVJrpqSlgKOp/HmfMDjnPk91qBGT+A4g+ndXzPCS/cS3LDyzptHcqMKIc54rFTpx MHLTjPX+qWBXwNZaa/dl4H2Ctiqg3Uic9CVpA8aE3+FxjDfafqC5ElxNSBFyT6tWf4V2 gU6L7cPsDO5vLvDNj9KKB0ZwnsVhhgehfL+zc1mYeU1jpHVufgJwYtaO8EI9iWBqUh2d YB4xD8mfHCLVKk3nApB4csCsFH0jdzzQKG1TCkpC6mczy9JLsG5PfaS8jN464ahalyZr FGKh9WvhaMypA5EZPiECx8Y9QCrHq9Z6OquK5/un0FMhrJTlLqJn025GdokIoUW9ex9T 52RA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=JmKVy95cIz7tm7Tfuf+0DfRQ4H3uH37+SsplSD0YsBU=; b=CvMHtQpB/Q+bNC63YujusB5N79zwOfpgo4LN3AY3+r8LkOq1HTAutfk/RD9uOxmT6w njwWTiVf7RmOskXd4vUdtRiTSUR9yTzi3lktwe8sLjmmOA5S3DzQmQhfCodReJNKPIut RUwoWTyJbXyiRp4fejCjBfWe0dsOJK3jCza8EIfTBkDQMv3Wc2GU9zo8op4UxWUJIjgx WddBqPAF6J6GMoQWVS4d6yiZZu4ryG8sEXapY2cbKmwWPbZmknaZUUg/aiKcU8rZjeqT vhpNTzmNHIpGQotBn0oJM6d7Yxhs+8THQCeU25ChhCWCHQMBCCg9qBdHZ+HseSTbytxs dL0A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o21si3127247pgj.415.2019.02.05.05.43.16; Tue, 05 Feb 2019 05:43:32 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729523AbfBEN0V (ORCPT + 99 others); Tue, 5 Feb 2019 08:26:21 -0500 Received: from mx2.suse.de ([195.135.220.15]:39752 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728690AbfBEN0V (ORCPT ); Tue, 5 Feb 2019 08:26:21 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id B0191AE46; Tue, 5 Feb 2019 13:26:19 +0000 (UTC) Date: Tue, 5 Feb 2019 14:26:18 +0100 (CET) From: Miroslav Benes To: Petr Mladek cc: Jiri Kosina , Josh Poimboeuf , Jason Baron , Joe Lawrence , Evgenii Shatokhin , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/4] livepatch: return -ENOMEM on ptr_id() allocation failure In-Reply-To: <20190204135653.31406-3-pmladek@suse.com> Message-ID: References: <20190204135653.31406-1-pmladek@suse.com> <20190204135653.31406-3-pmladek@suse.com> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 4 Feb 2019, Petr Mladek wrote: > From: Joe Lawrence > > Fixes the following smatch warning: > > lib/livepatch/test_klp_shadow_vars.c:47 ptr_id() warn: returning -1 instead of -ENOMEM is sloppy > > Signed-off-by: Joe Lawrence > Signed-off-by: Petr Mladek Acked-by: Miroslav Benes Miroslav