From: "Markus Rechberger" <mrechberger@gmail.com>
To: leslie.polzer@gmx.net
Cc: linux-c-programming@vger.kernel.org
Subject: Re: Handling ioctl() argp memory
Date: Sun, 4 Mar 2007 17:52:20 +0100 [thread overview]
Message-ID: <d9def9db0703040852m2df3b0d8l42cf57b0c8ae9e15@mail.gmail.com> (raw)
In-Reply-To: <20070304164844.GA7231@wintermute.farpoint>
Hi Leslie,
could you show us the sourcecode?
Markus
On 3/4/07, leslie.polzer@gmx.net <leslie.polzer@gmx.net> wrote:
>
> Hello folks,
>
> I'm passing an array to a ioctl.
> ioctl(2) says it needs to point at memory, so I'm allocating it.
> Do I need to, or rather, am I allowed to free the memory afterwards?
>
> It seems I'm getting segfaults when I free the memory...
>
> Leslie
>
> --
> gpg --keyserver pgp.mit.edu --recv-keys DD4EBF83
> http://nic-nac-project.de/~skypher/
>
--
Markus Rechberger
next prev parent reply other threads:[~2007-03-04 16:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-04 16:48 Handling ioctl() argp memory leslie.polzer
2007-03-04 16:52 ` Markus Rechberger [this message]
2007-03-04 17:04 ` leslie.polzer
2007-03-04 18:21 ` Markus Rechberger
2007-03-05 1:54 ` Glynn Clements
2007-03-05 5:23 ` leslie.polzer
2007-03-05 6:26 ` Glynn Clements
2007-03-05 10:49 ` Markus Rechberger
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=d9def9db0703040852m2df3b0d8l42cf57b0c8ae9e15@mail.gmail.com \
--to=mrechberger@gmail.com \
--cc=leslie.polzer@gmx.net \
--cc=linux-c-programming@vger.kernel.org \
/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).