set s->base = NULL, after kfree it. Signed-off-by: Chen Gang <gang.chen@xxxxxxxxxxx> --- fs/ext3/xattr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/ext3/xattr.c b/fs/ext3/xattr.c index d22ebb7..57aab94 100644 --- a/fs/ext3/xattr.c +++ b/fs/ext3/xattr.c @@ -847,8 +847,10 @@ cleanup: if (ce) mb_cache_entry_release(ce); brelse(new_bh); - if (!(bs->bh && s->base == bs->bh->b_data)) + if (!(bs->bh && s->base == bs->bh->b_data)) { kfree(s->base); + s->base = NULL; + } return error; -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html