Re: [PATCH] avoid NULL deference in ext2_xattr_get

Dan Carpenter
2010-07-10T09:23:23Z

Another way to fix this would be to say:

ea_idebug(inode, "name=%d.%s, buffer=%p, buffer_size=%ld",
- name_index, name, buffer, (long)buffer_size);
+ name_index, name ?: "(null)", buffer, (long)buffer_size);

That would help for debugging.

regards,
dan carpenter