mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-28 07:03:31 +08:00
ubifs: fix small error path mismatch
In do_readpage(), don't free 'dn' if its allocation failed. Signed-off-by: Daniel Mack <daniel@caiaq.de>
This commit is contained in:
parent
de7cf709eb
commit
165f9859b6
@ -554,10 +554,8 @@ static int do_readpage(struct ubifs_info *c, struct inode *inode, struct page *p
|
||||
}
|
||||
|
||||
dn = kmalloc(UBIFS_MAX_DATA_NODE_SZ, GFP_NOFS);
|
||||
if (!dn) {
|
||||
err = -ENOMEM;
|
||||
goto error;
|
||||
}
|
||||
if (!dn)
|
||||
return -ENOMEM;
|
||||
|
||||
i = 0;
|
||||
while (1) {
|
||||
|
Loading…
Reference in New Issue
Block a user