]> git.baikalelectronics.ru Git - kernel.git/commit
fpga: m10bmc-sec: Fix probe rollback
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 14 Dec 2022 14:49:52 +0000 (16:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2023 10:28:22 +0000 (11:28 +0100)
commit6d3dec0f75d3b02180eab5ccfbfd4b42c3e4af6d
tree9bd6705ad12f29835d29f98a650838fe3ef2ac16
parent6864ed097271ea52c4c6ff13e9fdf6b87316fab7
fpga: m10bmc-sec: Fix probe rollback

commit 60ce26d10e5850f33cc76fce52f5377045e75a15 upstream.

Handle probe error rollbacks properly to avoid leaks.

Fixes: 78e2f1b87c41 ("fpga: m10bmc-sec: add max10 secure update functions")
Reviewed-by: Matthew Gerlach <matthew.gerlach@linux.intel.com>
Reviewed-by: Russ Weight <russell.h.weight@intel.com>
Reviewed-by: Marco Pagani <marpagan@redhat.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Cc: stable@vger.kernel.org
Acked-by: Xu Yilun <yilun.xu@intel.com>
Link: https://lore.kernel.org/r/20221214144952.8392-1-ilpo.jarvinen@linux.intel.com
Signed-off-by: Xu Yilun <yilun.xu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/fpga/intel-m10-bmc-sec-update.c