diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-03-11 23:01:37 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-04-16 21:48:28 -0700 |
commit | 16deae329e6b9a0a500d70c0cc4023c799b644d9 (patch) | |
tree | 14bed01e332e5fd62191cfff26db65334d881acc /lib/flex_array.c | |
parent | a7d0c9176bb6e15c483a020816b2ecb60716f79a (diff) |
GFS2: return error if malloc failed in gfs2_rs_alloc()
commit 441362d06be349430d06e37286adce4b90e6ce96 upstream.
The error code in gfs2_rs_alloc() is set to ENOMEM when error
but never be used, instead, gfs2_rs_alloc() always return 0.
Fix to return 'error'.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Signed-off-by: Jonghwan Choi <jhbird.choi@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/flex_array.c')
0 files changed, 0 insertions, 0 deletions