Dongliang Mu 259a6fdd69 JFS: fix memleak in jfs_mount
[ Upstream commit c48a14dca2cb57527dde6b960adbe69953935f10 ]

In jfs_mount, when diMount(ipaimap2) fails, it goes to errout35. However,
the following code does not free ipaimap2 allocated by diReadSpecial.

Fix this by refactoring the error handling code of jfs_mount. To be
specific, modify the lable name and free ipaimap2 when the above error
ocurrs.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Dongliang Mu <mudongliangabcd@gmail.com>
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-11-18 19:16:48 +01:00
..
2021-04-12 15:04:29 +02:00
2021-07-02 14:25:17 -07:00
2021-04-12 15:04:29 +02:00
2021-05-21 10:36:00 -05:00
2021-04-12 15:04:29 +02:00
2020-09-21 08:59:26 -07:00
2021-11-18 19:16:48 +01:00
2021-04-12 15:04:29 +02:00
2021-06-23 09:21:52 -05:00
2021-01-24 14:27:17 +01:00