Robert Richter
4d59588c09
EDAC/sysfs: Remove csrow objects on errors
...
All created csrow objects must be removed in the error path of
edac_create_csrow_objects(). The objects have been added as devices.
They need to be removed by doing a device_del() *and* put_device() call
to also free their memory. The missing put_device() leaves a memory
leak. Use device_unregister() instead of device_del() which properly
unregisters the device doing both.
Fixes: 7adc05d2dc3a ("EDAC/sysfs: Drop device references properly")
Signed-off-by: Robert Richter <rrichter@marvell.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Tested-by: John Garry <john.garry@huawei.com>
Cc: <stable@vger.kernel.org>
Link: https://lkml.kernel.org/r/20200212120340.4764-4-rrichter@marvell.com
2020-02-13 13:29:41 +01:00
..
2019-11-22 10:18:29 +01:00
2019-07-25 14:28:42 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-01-27 09:19:35 -08:00
2020-01-16 17:09:23 +01:00
2017-07-17 13:42:48 +02:00
2019-06-05 17:37:06 +02:00
2019-06-05 17:37:06 +02:00
2019-06-05 17:37:06 +02:00
2019-06-05 17:37:06 +02:00
2019-08-29 07:58:01 +01:00
2019-12-19 07:27:09 +01:00
2019-08-08 12:57:01 -03:00
2016-12-15 08:54:51 -02:00
2019-06-05 17:37:06 +02:00
2019-08-29 07:58:01 +01:00
2017-07-17 13:42:48 +02:00
2018-11-10 16:56:16 +01:00
2016-12-15 08:54:51 -02:00
2019-10-09 13:01:42 +02:00
2019-10-09 13:01:42 +02:00
2020-02-13 13:29:41 +01:00
2020-02-13 13:28:52 +01:00
2019-09-03 19:21:19 +02:00
2017-10-31 15:30:37 +01:00
2019-08-29 07:58:01 +01:00
2016-12-15 08:54:51 -02:00
2016-12-24 11:46:01 -08:00
2016-12-15 08:54:51 -02:00
2018-12-19 11:57:45 +01:00
2018-12-19 11:57:45 +01:00
2019-11-22 09:53:08 +01:00
2019-05-30 11:29:52 -07:00
2019-05-30 11:29:52 -07:00
2019-11-09 10:32:32 +01:00
2019-11-09 10:32:32 +01:00
2020-01-06 09:45:59 +01:00
2020-01-06 09:45:59 +01:00
2019-11-09 10:32:32 +01:00
2019-12-16 13:54:02 -08:00
2019-11-09 10:32:32 +01:00
2019-11-09 10:32:32 +01:00
2017-07-17 13:42:48 +02:00
2017-07-17 13:42:48 +02:00
2017-07-17 13:42:48 +02:00
2020-01-06 09:45:59 +01:00
2020-01-06 09:45:59 +01:00
2020-01-27 09:16:22 -08:00
2016-12-15 08:54:51 -02:00
2019-09-22 09:39:09 -07:00
2020-01-16 21:52:48 +01:00
2017-11-02 11:10:55 +01:00
2017-02-03 10:36:35 +01:00
2016-09-01 10:28:00 +02:00
2018-01-09 20:14:23 +01:00
2011-04-19 00:23:22 +02:00
2016-12-15 08:54:51 -02:00
2017-11-27 11:57:26 +01:00
2016-12-15 08:54:51 -02:00
2016-12-15 08:54:51 -02:00
2019-06-05 17:37:06 +02:00
2019-11-09 10:32:32 +01:00
2019-06-05 17:36:37 +02:00
2019-06-05 17:37:17 +02:00
2019-06-05 17:37:17 +02:00
2018-11-06 12:03:16 +01:00
2017-07-17 13:42:48 +02:00
2019-11-09 10:32:32 +01:00
2020-01-27 09:16:22 -08:00
2019-11-09 10:32:32 +01:00
2019-12-10 14:14:43 -08:00
2019-10-18 15:27:58 -07:00
2018-11-06 10:38:27 +01:00
2018-10-13 13:58:06 +02:00
2019-11-09 10:32:32 +01:00
2019-05-21 10:50:45 +02:00
2020-01-06 09:45:59 +01:00
2019-05-21 11:28:45 +02:00