Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S268357AbUIFRt5 (ORCPT ); Mon, 6 Sep 2004 13:49:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S268381AbUIFRt4 (ORCPT ); Mon, 6 Sep 2004 13:49:56 -0400 Received: from mail-relay-3.tiscali.it ([213.205.33.43]:47524 "EHLO mail-relay-3.tiscali.it") by vger.kernel.org with ESMTP id S268357AbUIFRtz (ORCPT ); Mon, 6 Sep 2004 13:49:55 -0400 Subject: [patch 3/3] uml-ubd-thread-start-fail-well To: akpm@osdl.org Cc: jdike@addtoit.com, linux-kernel@vger.kernel.org, user-mode-linux-devel@lists.sourceforge.net, blaisorblade_spam@yahoo.it From: blaisorblade_spam@yahoo.it Date: Mon, 06 Sep 2004 19:44:51 +0200 Message-Id: <20040906174451.DCBD5BB21@zion.localdomain> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1005 Lines: 26 Correct the failure path in start_io_thread(), to return the correct error code. Signed-off-by: Paolo 'Blaisorblade' Giarrusso --- uml-linux-2.6.8.1-paolo/arch/um/drivers/ubd_user.c | 1 + 1 files changed, 1 insertion(+) diff -puN arch/um/drivers/ubd_user.c~uml-ubd-thread-start-fail-well arch/um/drivers/ubd_user.c --- uml-linux-2.6.8.1/arch/um/drivers/ubd_user.c~uml-ubd-thread-start-fail-well 2004-08-29 14:40:54.494927288 +0200 +++ uml-linux-2.6.8.1-paolo/arch/um/drivers/ubd_user.c 2004-08-29 14:40:54.496926984 +0200 @@ -353,6 +353,7 @@ int start_io_thread(unsigned long sp, in NULL); if(pid < 0){ printk("start_io_thread - clone failed : errno = %d\n", errno); + err = -errno; goto out_close; } _ - 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/