Files
linux/drivers/platform/x86
Dan Carpenter e093a9469e platform/x86: dell-smbios: Fix memory leaks in build_tokens_sysfs()
[ Upstream commit 0e5b09b165 ]

We're freeing "value_name" which is NULL, so that's a no-op, but we
intended to free "location_name" instead.  And then we don't free the
names in token_location_attrs[0] and token_value_attrs[0].

Fixes: 33b9ca1e53 ("platform/x86: dell-smbios: Add a sysfs interface for SMBIOS tokens")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-05-30 08:17:24 +02:00
..
2018-01-09 16:33:31 +01:00
2016-04-09 03:12:58 +02:00