From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Herrenschmidt Subject: Re: [PATCH] Don't explode on swsusp failure to find swap Date: Wed, 01 Jun 2005 00:45:06 +1000 Message-ID: <1117550706.5826.43.camel@gaston> References: <1117523585.5826.18.camel@gaston> <20050531103623.GB1848@elf.ucw.cz> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============26019314948769745==" Return-path: In-Reply-To: <20050531103623.GB1848@elf.ucw.cz> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-pm-bounces@lists.osdl.org Errors-To: linux-pm-bounces@lists.osdl.org To: Pavel Machek Cc: Linux-pm mailing list , Linux Kernel list List-Id: linux-pm@vger.kernel.org --===============26019314948769745== Content-Type: text/plain Content-Transfer-Encoding: 7bit On Tue, 2005-05-31 at 12:36 +0200, Pavel Machek wrote: > Hi! > > > If we specify a swap device for swsusp using resume= kernel argument and > > that device doesn't exist in the swap list, we end up calling > > swsusp_free() before we have allocated pagedir_save. That causes us to > > explode when trying to free it. > > > > Pavel, does that look right ? > > It looks like a workaround. We should not call swsusp_free in case > device does not exists. Quick look did not reveal where the bug comes > from, can you try to trace it? > Pavel Well, the bug comes from arch code calling swsusp_save() which fails, then we call swsusp_free() Ben. --===============26019314948769745== Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline --===============26019314948769745==--