Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 1 Dec 2001 12:15:02 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 1 Dec 2001 12:14:52 -0500 Received: from mail.parknet.co.jp ([210.134.213.6]:45074 "EHLO mail.parknet.co.jp") by vger.kernel.org with ESMTP id ; Sat, 1 Dec 2001 12:14:48 -0500 To: Zwane Mwaikambo Cc: Linux Kernel , Subject: Re: [PATCH] if (foo) kfree(foo) /fs cleanup + reverted JBD code path changes In-Reply-To: From: OGAWA Hirofumi Date: Sun, 02 Dec 2001 02:14:15 +0900 In-Reply-To: Message-ID: <87667qrhg8.fsf@devron.myhome.or.jp> Lines: 20 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Zwane Mwaikambo writes: > out_fail: > - if (opts.iocharset) { > - printk("FAT: freeing iocharset=%s\n", opts.iocharset); > - kfree(opts.iocharset); > - } > - if(sbi->private_data) > - kfree(sbi->private_data); > + printk("FAT: freeing iocharset=%s\n", opts.iocharset); In all failed cases, this message will be outputted. I think I shouldn't do so. (or remove this message.) > + kfree(opts.iocharset); > + > + kfree(sbi->private_data); > sbi->private_data = NULL; -- OGAWA Hirofumi - 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/