Dongliang Mu 980c7bdd20 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 14:04:15 +01:00
..
2021-09-08 08:49:01 +02:00
2020-10-16 11:11:22 -07:00
2021-10-27 09:56:51 +02:00
2021-07-14 16:55:59 +02:00
2021-09-18 13:40:15 +02:00
2021-11-18 14:03:40 +01:00
2021-11-18 14:04:00 +01:00
2021-11-18 14:04:15 +01:00
2021-07-14 16:56:12 +02:00
2020-09-10 14:03:31 -07:00
2020-10-23 11:33:41 -07:00
2020-10-23 11:33:41 -07:00
2020-10-24 12:40:18 -07:00