From patchwork Tue Dec 15 02:48:41 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: TARUISI Hiroaki X-Patchwork-Id: 67453 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nBF2mhEB005244 for ; Tue, 15 Dec 2009 02:48:43 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759014AbZLOCsm (ORCPT ); Mon, 14 Dec 2009 21:48:42 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758746AbZLOCsm (ORCPT ); Mon, 14 Dec 2009 21:48:42 -0500 Received: from fgwmail6.fujitsu.co.jp ([192.51.44.36]:35554 "EHLO fgwmail6.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754891AbZLOCsl (ORCPT ); Mon, 14 Dec 2009 21:48:41 -0500 Received: from m5.gw.fujitsu.co.jp ([10.0.50.75]) by fgwmail6.fujitsu.co.jp (Fujitsu Gateway) with ESMTP id nBF2mcVi002306 for (envelope-from taruishi.hiroak@jp.fujitsu.com); Tue, 15 Dec 2009 11:48:38 +0900 Received: from smail (m5 [127.0.0.1]) by outgoing.m5.gw.fujitsu.co.jp (Postfix) with ESMTP id 0930445DE53 for ; Tue, 15 Dec 2009 11:48:38 +0900 (JST) Received: from s5.gw.fujitsu.co.jp (s5.gw.fujitsu.co.jp [10.0.50.95]) by m5.gw.fujitsu.co.jp (Postfix) with ESMTP id DBCB745DE51 for ; Tue, 15 Dec 2009 11:48:37 +0900 (JST) Received: from s5.gw.fujitsu.co.jp (localhost.localdomain [127.0.0.1]) by s5.gw.fujitsu.co.jp (Postfix) with ESMTP id C498B1DB803F for ; Tue, 15 Dec 2009 11:48:37 +0900 (JST) Received: from m020.s.css.fujitsu.com (m020.s.css.fujitsu.com [10.0.81.60]) by s5.gw.fujitsu.co.jp (Postfix) with ESMTP id 75A1B1DB805A for ; Tue, 15 Dec 2009 11:48:37 +0900 (JST) Received: from m020.css.fujitsu.com (m020 [127.0.0.1]) by m020.s.css.fujitsu.com (Postfix) with ESMTP id 63C6D18078; Tue, 15 Dec 2009 11:48:37 +0900 (JST) Received: from [127.0.0.1] (unknown [10.124.100.186]) by m020.s.css.fujitsu.com (Postfix) with ESMTP id 3E79F18065; Tue, 15 Dec 2009 11:48:37 +0900 (JST) X-SecurityPolicyCheck-FJ: OK by FujitsuOutboundMailChecker v1.4.0 Received: from paxd3.soft.fujitsu.com[10.124.100.186] by paxd3.soft.fujitsu.com (FujitsuOutboundMailChecker v1.4.0/9992[10.124.100.186]); Tue, 15 Dec 2009 11:48:58 +0900 (JST) Message-ID: <4B26F909.2040101@jp.fujitsu.com> Date: Tue, 15 Dec 2009 11:48:41 +0900 From: TARUISI Hiroaki User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; ja; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0 MIME-Version: 1.0 To: josef@redhat.com CC: linux-btrfs@vger.kernel.org, chris.mason@oracle.com Subject: Re: [PATCH] Btrfs: fix various things with the listing ioctl References: <20091214191722.GB2165@localhost.localdomain> In-Reply-To: <20091214191722.GB2165@localhost.localdomain> X-Enigmail-Version: 1.0 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org Index: b/fs/btrfs/ioctl.c =================================================================== --- a/fs/btrfs/ioctl.c 2009-12-15 11:31:18.000000000 +0900 +++ b/fs/btrfs/ioctl.c 2009-12-15 11:33:28.000000000 +0900 @@ -989,6 +989,7 @@ static noinline int btrfs_ioctl_snap_lis if (rest < sizeof(struct btrfs_ioctl_subvol_items) + name_len + strlen(work_path) + 1) { svol->next_len = name_len + strlen(work_path); + kfree(name); if (copy_to_user(arg, svol, sizeof(*svol))) { ret = -EFAULT; goto out;