[sheepdog] [PATCH] fix two tricky bugs

Liu Yuan namei.unix at gmail.com
Wed Jan 1 13:07:29 CET 2014


On Wed, Jan 01, 2014 at 05:30:15PM +0800, Robin Dong wrote:
> From: Robin Dong <sanbai at taobao.com>
> 
> First bug, we should use argument 'vdi_inuse' for dog_exec_req() in parse_vdi()
> because 'vdi_inuse' is already the address of a memory-space. It will cause
> data corruption in some non-x86_64 machines.
> 
> Second bug, we  use 'goto out' in kv_create_object to avoid memory leak for
> 'onode'.

Please split it into two patches and I think first patch should go to stable
branches.

Thanks
Yuan



More information about the sheepdog mailing list