[PATCH 0/5] hp-bioscfg: Address memory leaks and uninitialized variable errors

From: Jorge Lopez
Date: Tue Jul 25 2023 - 18:01:03 EST


Submit individual patches to address memory leaks and uninitialized
variable errors for each source file listed below.

- hp_populate_string_elements_from_package()
drivers/platform/x86/hp/hp-bioscfg/string-attributes.c

- hp_populate_ordered_list_elements_from_package()
drivers/platform/x86/hp/hp-bioscfg/order-list-attributes.c

- hp_populate_integer_elements_from_package()
drivers/platform/x86/hp/hp-bioscfg/int-attributes.c

- hp_populate_enumeration_elements_from_package()
drivers/platform/x86/hp/hp-bioscfg/enum-attributes.c

- hp_populate_password_elements_from_package()
drivers/platform/x86/hp/hp-bioscfg/passwdobj-attributes.c

Changes were tested with a HP EliteBook x360 1030 G3


Jorge Lopez (5):
hp-bioscfg: Fix memory leaks in string_elements_from_package()
hp-bioscfg: Fix memory leaks in ordered_list_elements_from_package
hp-bioscfg: Fix memory leaks in integer_elements_from_package
hp-bioscfg: Fix memory leaks in enumeration_elements_from_package()
hp-bioscfg: Fix memory leaks in password_elements_from_package()

drivers/platform/x86/hp/hp-bioscfg/enum-attributes.c | 8 +++++++-
drivers/platform/x86/hp/hp-bioscfg/int-attributes.c | 7 ++++++-
.../platform/x86/hp/hp-bioscfg/order-list-attributes.c | 10 ++++++++--
.../platform/x86/hp/hp-bioscfg/passwdobj-attributes.c | 10 +++++++++-
drivers/platform/x86/hp/hp-bioscfg/string-attributes.c | 5 ++++-
5 files changed, 34 insertions(+), 6 deletions(-)

--
2.34.1