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)
committerXu Yilun <yilun.xu@intel.com>
Fri, 30 Dec 2022 02:49:52 +0000 (10:49 +0800)
commit60ce26d10e5850f33cc76fce52f5377045e75a15
treeb280da66b4966b201addfe2e2ed7febc122cbfdd
parent65ea840afd508194b0ee903256162aa87e46ec30
fpga: m10bmc-sec: Fix probe rollback

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>
drivers/fpga/intel-m10-bmc-sec-update.c