From: Li Zefan <lizf@cn.fujitsu.com>
To: Arne Jansen <sensille@gmx.net>
Cc: "linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>
Subject: Re: [PATCH] Btrfs: avoid stack bloat in btrfs_ioctl_fs_info()
Date: Wed, 08 Jun 2011 15:23:32 +0800 [thread overview]
Message-ID: <4DEF2374.5020905@cn.fujitsu.com> (raw)
In-Reply-To: <4DEF206E.9000600@gmx.net>
>> - if (copy_to_user(arg, &fi_args, sizeof(fi_args)))
>> - return -EFAULT;
>> + if (copy_to_user(arg, fi_args, sizeof(fi_args)))
>
> sizeof(*fi_args)
>
> will integrate that, thanks :)
>
Oops, what a silly mistake!
prev parent reply other threads:[~2011-06-08 7:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-08 3:58 [PATCH] Btrfs: avoid stack bloat in btrfs_ioctl_fs_info() Li Zefan
2011-06-08 7:10 ` Arne Jansen
2011-06-08 7:23 ` Li Zefan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DEF2374.5020905@cn.fujitsu.com \
--to=lizf@cn.fujitsu.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=sensille@gmx.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).