fs: exfat: Flush node before put in read() callback
authorMarek Vasut <marex@denx.de>
Sun, 13 Apr 2025 08:54:59 +0000 (10:54 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 21 Apr 2025 17:07:04 +0000 (11:07 -0600)
commitaeed1373724e862acec9fda972d352c9241ee901
tree9afe02dfcf5272c14ea8fb6baa6001492e3a7048
parent739ad58dbee874a3ad3bddd116e995212a254e07
fs: exfat: Flush node before put in read() callback

Make sure the node is never dirty before being released, flush
the node first using exfat_flush_node() and only then release
the node using exfat_put_node(). This now matches the behavior
of exfat_fs_write() too.

Fixes: b86a651b646c ("fs: exfat: Add U-Boot porting layer")
Signed-off-by: Marek Vasut <marex@denx.de>
fs/exfat/io.c