]> www.infradead.org Git - users/dwmw2/linux.git/commit
dpll: fix broken error path in dpll_pin_alloc(..)
authorArkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>
Fri, 19 Jan 2024 13:43:01 +0000 (14:43 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Jan 2024 11:01:11 +0000 (11:01 +0000)
commitb6a11a7fc4d6337f7ea720b9287d1b9749c4eae0
tree9e1115554067e0f72b4ca4ba0a9ccdccca2034d5
parentef48521672452aa7a5da1cb91160822eda6e4403
dpll: fix broken error path in dpll_pin_alloc(..)

If pin type is not expected, or pin properities failed to allocate
memory, the unwind error path shall not destroy pin's xarrays, which
were not yet initialized.
Add new goto label and use it to fix broken error path.

Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Arkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/dpll/dpll_core.c