]> www.infradead.org Git - users/jedix/linux-maple.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)
commit74cff472d3d66db13b5ef64f40dfa42383f71ff7
tree9bd6705ad12f29835d29f98a650838fe3ef2ac16
parent32beac7a3d0f7ae6a7de67ce4c18755f80bf7e29
fpga: m10bmc-sec: Fix probe rollback

commit 60ce26d10e5850f33cc76fce52f5377045e75a15 upstream.

Handle probe error rollbacks properly to avoid leaks.

Fixes: 5cd339b370e2 ("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