Keita Suzuki 8aab67dcdf misc: rtsx: Fix memory leak in rtsx_pci_probe
[ Upstream commit bc28369c6189009b66d9619dd9f09bd8c684bb98 ]

When mfd_add_devices() fail, pcr->slots should also be freed. However,
the current implementation does not free the member, leading to a memory
leak.

Fix this by adding a new goto label that frees pcr->slots.

Signed-off-by: Keita Suzuki <keitasuzuki.park@sslab.ics.keio.ac.jp>
Link: https://lore.kernel.org/r/20200909071853.4053-1-keitasuzuki.park@sslab.ics.keio.ac.jp
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-10-29 09:05:44 +01:00
..
2016-04-19 07:58:06 +01:00
2015-11-06 10:23:50 -08:00
2016-05-20 11:10:24 -07:00
2016-10-07 08:35:35 -07:00
2016-10-07 08:35:35 -07:00
2016-08-01 07:28:14 -04:00
2016-08-31 13:48:25 +01:00
2015-10-30 17:19:51 +00:00
2020-10-29 09:05:36 +01:00
2016-08-10 09:25:18 +01:00
2016-08-10 09:25:18 +01:00
2015-08-11 15:09:01 +01:00
2015-08-11 15:09:01 +01:00
2015-08-11 15:09:01 +01:00
2015-09-04 11:46:02 -07:00