diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2011-11-09 12:54:43 +0000 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2011-11-09 12:54:43 +0000 |
commit | 114b80ce2c05f91f10fffbf303080357d73c0675 (patch) | |
tree | 3a4804a7cf7515d07baf9fbf899c07c95297f6ce /mm/readahead.c | |
parent | 87654896ca619ff64f94d3881d6bd0ec7b29e25f (diff) | |
download | linux-114b80ce2c05f91f10fffbf303080357d73c0675.tar.gz linux-114b80ce2c05f91f10fffbf303080357d73c0675.tar.bz2 linux-114b80ce2c05f91f10fffbf303080357d73c0675.zip |
GFS2: Fix very unlikley memory leak in ACL xattr code
This was spotted by automated code analysis. In case reading
an ACL xattr failed (only likely to happen if there is an I/O
error for example, and even then only with unstuffed xattrs,
so pretty difficult to trigger) a small amount of memory could
potentially be leaked.
This patch adds a kfree to the error path, and also removes a
test which is no longer required (gfs2_ea_get_copy always
returns either a negative error, or a length)
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'mm/readahead.c')
0 files changed, 0 insertions, 0 deletions