Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp56075imm; Thu, 20 Sep 2018 15:05:53 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYwIHyewv0cSftFxu9GH6luKpIe+ftBllvzpJceccg+hf3Aca25dEGWY8kr06dniZKOzGke X-Received: by 2002:a63:5204:: with SMTP id g4-v6mr38302530pgb.274.1537481153771; Thu, 20 Sep 2018 15:05:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537481153; cv=none; d=google.com; s=arc-20160816; b=peBmRIPtRQCZZ7RJjFWAbf0NuMULdPV38rWMBUMuqAhMsE8qtAk6zDkftJHI2uECG+ IueMHHOlWASEcXFtsJRCzMhhxuiYdOMW+BszrBr90ftBjuy4gPrMOaZUXMNlyv1u0AKV VIUZ3d8sZqdWLvq/rWIIa0qPRXA5HjzeYJih8KcbzTQwV9zTmlSD65UH86QUuOVwj3/u 4n+dHM4lUtXNi3aGG2LSri81MCydaiZACZuwUWPdu5J7s18ckOO+IvShyL8iOlfwwcID 1K7tgzMPPwPGD0nRT1ZTH+ayQd0lUJpBPKRTrPJcUsSpi8UDpLmGtjQsrxcWod6aIUv+ yEQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=zQ690OS00s1tnkWmYFwLEGb5wedgkRxWXCI4/6djsYU=; b=krtfKmoB5J5lC140aE0CnGnVV/elEK+NCLkvGXmwviJEEglhNlNvHlyv8XZGeAoSIb jmaVF0p0t8SAxUVn3YXPunBDDdBOyYZZzPArA9PoTAIXF7MLKly5qe/kRYsWksHZurO2 MG/FFqKKMoUiwtT4oFSlCl0hEEdQo/jgG6uEPNlmfyCng0RHp0ijfyXa6Dnef4w5cZ3i J7Ht0zve3Bv4+KI6PATBKSWrIgn6gFCUyxse100ht9PRnjxNeLiT0GFzcUxaOX1hK0un nWUerXvxFiwu+DBhVPaDZtcg5U8VxSwFD5Un3Rxku2yeWzkd2TxFWIDn+M64snxxPbix J7Aw== 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 d6-v6si23836122pgi.506.2018.09.20.15.05.38; Thu, 20 Sep 2018 15:05:53 -0700 (PDT) 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 S2388762AbeIUDuu (ORCPT + 99 others); Thu, 20 Sep 2018 23:50:50 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:55787 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728347AbeIUDut (ORCPT ); Thu, 20 Sep 2018 23:50:49 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 137C98075A; Fri, 21 Sep 2018 00:05:11 +0200 (CEST) Date: Fri, 21 Sep 2018 00:05:10 +0200 From: Pavel Machek To: Chen Yu Cc: Thomas Gleixner , "Rafael J. Wysocki" , x86@kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Len Brown , Zhimin Gu Subject: Re: [PATCH 02/12][RFC v3] PM / hibernate: Check the success of generating md5 digest before hibernation Message-ID: <20180920220510.GE27468@xo-6d-61-c0.localdomain> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 2018-09-19 15:38:17, Chen Yu wrote: > Currently if get_e820_md5() fails, then it will hibernate nevertheless. > Actually the error code should be propagated to upper caller so that > the hibernation could be aware of the result and terminates the process > if md5 digest fails. > > Suggested-by: Thomas Gleixner > Cc: "Rafael J. Wysocki" > Signed-off-by: Chen Yu Acked-by: Pavel Machek > --- > arch/x86/power/hibernate_64.c | 11 +++++------ > 1 file changed, 5 insertions(+), 6 deletions(-) -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html