Skip to content
Commit ebddd63b authored by Artem Bityutskiy's avatar Artem Bityutskiy
Browse files

UBI: fix memory leak in update path



When truncating an UBI volume, UBI should allocates a PEB-sized
buffer but does not release it, which leads to memory leaks.
This patch fixes the issue.

Reported-by: default avatarMarek Skuczynski <mareksk7@gmail.com>
Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tested-by: default avatarMarek Skuczynski <mareksk7@gmail.com>
Cc: stable@kernel.org
parent b531b55a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment