2006-05-02 07:25:13

by Daniel Aragonés

[permalink] [raw]
Subject: [PATCH/RFC] minix filesystem update to V3. Error comment.

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