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: NMarek Skuczynski <mareksk7@gmail.com> Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com> Tested-by: NMarek Skuczynski <mareksk7@gmail.com> Cc: stable@kernel.org
Showing
想要评论请 注册 或 登录