diff options
author | Wenwen Wang <wenwen@cs.uga.edu> | 2019-08-20 06:44:24 +0200 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2019-09-15 22:12:20 +0200 |
commit | 9163e0184bd7d5f779934d34581843f699ad2ffd (patch) | |
tree | 7d3908f114eb453aa03338a59731e7041acd728d /drivers/mtd/ubi | |
parent | ubifs: Fix memory leak in __ubifs_node_verify_hmac error path (diff) | |
download | linux-9163e0184bd7d5f779934d34581843f699ad2ffd.tar.xz linux-9163e0184bd7d5f779934d34581843f699ad2ffd.zip |
ubifs: Fix memory leak bug in alloc_ubifs_info() error path
In ubifs_mount(), 'c' is allocated through kzalloc() in alloc_ubifs_info().
However, it is not deallocated in the following execution if
ubifs_fill_super() fails, leading to a memory leak bug. To fix this issue,
free 'c' before going to the 'out_deact' label.
Fixes: 1e51764a3c2a ("UBIFS: add new flash file system")
Signed-off-by: Wenwen Wang <wenwen@cs.uga.edu>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'drivers/mtd/ubi')
0 files changed, 0 insertions, 0 deletions