uimage: Fix deleting of temporary file
the uImage support may generate a temporary file which ought to be deleted after usage. Due to the wrong filename this never happened. Fix this. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
3a17af33c0
commit
2d1ceaff2f
|
@ -225,8 +225,8 @@ void uimage_close(struct uimage_handle *handle)
|
|||
free(handle->name);
|
||||
free(handle);
|
||||
|
||||
if (IS_BUILTIN(CONFIG_FS_TFTP) && !stat("/.uimage_tmp", &s))
|
||||
unlink("/.uimage_tmp");
|
||||
if (IS_BUILTIN(CONFIG_FS_TFTP) && !stat(uimage_tmp, &s))
|
||||
unlink(uimage_tmp);
|
||||
}
|
||||
EXPORT_SYMBOL(uimage_close);
|
||||
|
||||
|
|
Loading…
Reference in New Issue