public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Daniel Aragonés" <danarag@gmail.com>
To: Joshua Hudson <joshudson@gmail.com>
Cc: Jiri Slaby <jirislaby@gmail.com>,
	linux-kernel@vger.kernel.org, Andrew Morton <akpm@osdl.org>
Subject: [PATCH/RFC] minix filesystem update to V3. Error comment.
Date: Tue, 02 May 2006 09:24:25 +0200	[thread overview]
Message-ID: <44570929.2080603@gmail.com> (raw)

Joshua wrote:

 > Is this the error about variable might not be initalized?
 > What happends in the code if you just initalize to NULL?

Hi all,

No, is not this kind of error. The error message complaints about not beeing able to reference the contents of a pointer if you previously not allocate with kmalloc a location for it. Nothig has to 
bee initialized because the target and contents already exists.

Nothing happens if I initialize to NULL. An exception happens if I later free it with kfree instead of setting it to NULL.

Be aware that all this happens within functions included by bitops.h.

Regards,

Daniel

                 reply	other threads:[~2006-05-02  7:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=44570929.2080603@gmail.com \
    --to=danarag@gmail.com \
    --cc=akpm@osdl.org \
    --cc=jirislaby@gmail.com \
    --cc=joshudson@gmail.com \
    --cc=linux-kernel@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