31 lines
687 B
Plaintext
31 lines
687 B
Plaintext
From: Sankar P <psankar@novell.com>
|
|
Subject: [PATCH] novfs: Fix a memory leak that causes an OOM condition
|
|
References: bnc#610828
|
|
Patch-mainline: No
|
|
|
|
The patch fixes a serious memory leak issue, that causes
|
|
machine go to OOM condition that makes it unusable.
|
|
|
|
Signed-off-by: Sankar P <psankar@novell.com>
|
|
Acked-by: Jan Kara <jack@suse.cz>
|
|
|
|
---
|
|
fs/novfs/inode.c | 5 +----
|
|
1 file changed, 1 insertion(+), 4 deletions(-)
|
|
|
|
--- a/fs/novfs/inode.c
|
|
+++ b/fs/novfs/inode.c
|
|
@@ -3421,11 +3421,8 @@ ssize_t novfs_i_getxattr(struct dentry *
|
|
retxcode = -ERANGE;
|
|
}
|
|
}
|
|
-
|
|
- if (bufRead) {
|
|
- kfree(bufRead);
|
|
- }
|
|
}
|
|
+ kfree(bufRead);
|
|
}
|
|
}
|
|
kfree(buf);
|