mirror of
https://xff.cz/git/u-boot/
synced 2025-09-05 18:52:17 +02: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:
committed by
Wolfgang Denk
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);
|
dn = kmalloc(UBIFS_MAX_DATA_NODE_SZ, GFP_NOFS);
|
||||||
if (!dn) {
|
if (!dn)
|
||||||
err = -ENOMEM;
|
return -ENOMEM;
|
||||||
goto error;
|
|
||||||
}
|
|
||||||
|
|
||||||
i = 0;
|
i = 0;
|
||||||
while (1) {
|
while (1) {
|
||||||
|
Reference in New Issue
Block a user