lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Mon, 6 Aug 2018 10:49:06 +0800 From: Liu Song <liu.song11@....com.cn> To: richard@....at, dedekind1@...il.com, adrian.hunter@...el.com Cc: linux-mtd@...ts.infradead.org, linux-kernel@...r.kernel.org, liu.song11@....com.cn, jiang.biao2@....com.cn, zhong.weidong@....com.cn Subject: [PATCH] Simplify redundant code cbuf's size can be simply assigned. Signed-off-by: Liu Song <liu.song11@....com.cn> Reviewed-by: Jiang Biao <jiang.biao2@....com.cn> --- fs/ubifs/super.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index c5466c7..1a8e2032 100644 --- a/fs/ubifs/super.c +++ b/fs/ubifs/super.c @@ -1245,8 +1245,7 @@ static int mount_ubifs(struct ubifs_info *c) if (err) goto out_free; - sz = ALIGN(c->max_idx_node_sz, c->min_io_size); - sz = ALIGN(sz + c->max_idx_node_sz, c->min_io_size); + sz = ALIGN(c->max_idx_node_sz, c->min_io_size) * 2; c->cbuf = kmalloc(sz, GFP_NOFS); if (!c->cbuf) { err = -ENOMEM; -- 2.1.0.GIT
Powered by blists - more mailing lists