Re: [PATCH] fs: fix a bug when new_insert_key is not initialization

2016-08-01 Thread zhong jiang
On 2016/8/2 7:05, Andrew Morton wrote: > On Sat, 30 Jul 2016 11:51:09 +0800 zhongjiang wrote: > >> From: zhong jiang >> >> when compile the kenrel code, I happens to the following warn. >> fs/reiserfs/ibalance.c:1156:2: warning: ___new_insert_key___ may be used >> uninitialized in this function.

Re: [PATCH] fs: fix a bug when new_insert_key is not initialization

2016-08-01 Thread Andrew Morton
On Sat, 30 Jul 2016 11:51:09 +0800 zhongjiang wrote: > From: zhong jiang > > when compile the kenrel code, I happens to the following warn. > fs/reiserfs/ibalance.c:1156:2: warning: ___new_insert_key___ may be used > uninitialized in this function. > memcpy(new_insert_key_addr, &new_insert_key,

[PATCH] fs: fix a bug when new_insert_key is not initialization

2016-07-29 Thread zhongjiang
From: zhong jiang when compile the kenrel code, I happens to the following warn. fs/reiserfs/ibalance.c:1156:2: warning: ‘new_insert_key’ may be used uninitialized in this function. memcpy(new_insert_key_addr, &new_insert_key, KEY_SIZE); The patch fix it by check the new_insert_ptr. if new_inser