From patchwork Thu Apr 14 06:47:30 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel J Blueman X-Patchwork-Id: 706371 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p3E6mMvK030264 for ; Thu, 14 Apr 2011 06:48:23 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753400Ab1DNGsR (ORCPT ); Thu, 14 Apr 2011 02:48:17 -0400 Received: from mail-pw0-f46.google.com ([209.85.160.46]:56827 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752800Ab1DNGsQ (ORCPT ); Thu, 14 Apr 2011 02:48:16 -0400 Received: by pwi15 with SMTP id 15so498855pwi.19 for ; Wed, 13 Apr 2011 23:48:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=/9lyrk89lUTvYmaF1gMq/n4R0y8cOrydAKpRMa3NAV8=; b=dFv2LwsYAo9gzMU1m+pxFZRsyAV5rOJLIHcm/VT4pH6A2ZPi2PNedk/+1sd3zy7Bxx 5P5qEF+0TDRjG6TpEMoL3EPx9UjB1qZcUhDb9kjYwFnsEh+2cBgX8Re0rl9p65TPfI9C T0OoWOxO5YpdKvCTFhALBmbsWCutbTex/7OSM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=WzP/C8+F60YqdCbk4/T5X2oOMfBJyK2ikavr0teHWtEK6If2HMqBwUhIsB4hdZebeO sxHWywPCjdKvQgj6XNaKohkbYYFTC3kSQkWHASAU5ttVCE9RP3Tgq9CrjiUvjHqW1xjz Qwq52YtyDJPxKWGGS7UIB9Ypi/bY50FSoBe4M= Received: by 10.68.48.4 with SMTP id h4mr258985pbn.37.1302763696076; Wed, 13 Apr 2011 23:48:16 -0700 (PDT) Received: from localhost.localdomain ([119.75.36.222]) by mx.google.com with ESMTPS id 25sm1858169wfb.22.2011.04.13.23.48.14 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 13 Apr 2011 23:48:15 -0700 (PDT) From: Daniel J Blueman To: Chris Mason Cc: Josef Bacik , Linux BTRFS Subject: [PATCH] Fix address space annotation (fixed) Date: Thu, 14 Apr 2011 14:47:30 +0800 Message-Id: <1302763650-22551-1-git-send-email-daniel.blueman@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: References: Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 14 Apr 2011 06:48:23 +0000 (UTC) Fix address space annotation. --- fs/btrfs/ioctl.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index de76a6d..2b1e53e 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -2287,7 +2287,7 @@ static long btrfs_ioctl_space_info(struct btrfs_root *root, void __user *arg) struct btrfs_ioctl_space_info space; struct btrfs_ioctl_space_info *dest; struct btrfs_ioctl_space_info *dest_orig; - struct btrfs_ioctl_space_info *user_dest; + struct btrfs_ioctl_space_info __user *user_dest; struct btrfs_space_info *info; u64 types[] = {BTRFS_BLOCK_GROUP_DATA, BTRFS_BLOCK_GROUP_SYSTEM, @@ -2387,7 +2387,7 @@ static long btrfs_ioctl_space_info(struct btrfs_root *root, void __user *arg) up_read(&info->groups_sem); } - user_dest = (struct btrfs_ioctl_space_info *) + user_dest = (struct btrfs_ioctl_space_info __user *) (arg + sizeof(struct btrfs_ioctl_space_args)); if (copy_to_user(user_dest, dest_orig, alloc_size))