[PATCH v2] staging: erofs: fix memleak of inode's shared xattr array

2019-02-13 Thread Sheng Yong
If it fails to read a shared xattr page, the inode's shared xattr array is not freed. The next time the inode's xattr is accessed, the previously allocated array is leaked. Signed-off-by: Sheng Yong --- v2: * s/node/inode in commit message * add prefix `staging:' to the subje

[PATCH] erofs: fix memleak of node's shared xattr array

2019-02-13 Thread Sheng Yong
If it fails to read a shared xattr page, the node's shared xattr array is not freed. The next time the node's xattr is accessed, the previously allocated array is leaked. Signed-off-by: Sheng Yong --- drivers/staging/erofs/xattr.c | 5 - 1 file changed, 4 insertions(+), 1 deletio

[PATCH] staging: fbtft: use %zu to avoid compile warning

2015-02-26 Thread Sheng Yong
For value which has size_t type, use %zu to avoid compile warning of printk format. Signed-off-by: Sheng Yong --- drivers/staging/fbtft/fbtft-core.c | 2 +- drivers/staging/fbtft/fbtft-io.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/fbtft/fbtft