[PATCH/RFC] minix filesystem update to V3. Error comment.

From: Daniel Aragonés
Date: Tue May 02 2006 - 03:24:55 EST


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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/