Re: [PATCH] exofs: don't increase urilen if krealloc() fails

2013-04-29 Thread Boaz Harrosh
On 04/28/2013 04:46 AM, Zhao Hongjiang wrote: > Without the patch, edp->urilen is increased before krealloc(). If krealloc() > fails, > edp->urilen is too high. Fix that by only updating edp->urilen if krealloc() > is successful. > > Signed-off-by: Zhao Hongjiang > --- > fs/exofs/sys.c |4

Re: [PATCH] exofs: don't increase urilen if krealloc() fails

2013-04-29 Thread Boaz Harrosh
On 04/28/2013 04:46 AM, Zhao Hongjiang wrote: Without the patch, edp-urilen is increased before krealloc(). If krealloc() fails, edp-urilen is too high. Fix that by only updating edp-urilen if krealloc() is successful. Signed-off-by: Zhao Hongjiang zhaohongji...@huawei.com ---

[PATCH] exofs: don't increase urilen if krealloc() fails

2013-04-28 Thread Zhao Hongjiang
Without the patch, edp->urilen is increased before krealloc(). If krealloc() fails, edp->urilen is too high. Fix that by only updating edp->urilen if krealloc() is successful. Signed-off-by: Zhao Hongjiang --- fs/exofs/sys.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff

[PATCH] exofs: don't increase urilen if krealloc() fails

2013-04-28 Thread Zhao Hongjiang
Without the patch, edp-urilen is increased before krealloc(). If krealloc() fails, edp-urilen is too high. Fix that by only updating edp-urilen if krealloc() is successful. Signed-off-by: Zhao Hongjiang zhaohongji...@huawei.com --- fs/exofs/sys.c |4 ++-- 1 files changed, 2 insertions(+),