Home
last modified time | relevance | path

Searched hist:"50 f05bd1" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/ipack/carriers/
H A Dtpci200.c50f05bd1 Tue Aug 10 05:03:19 CDT 2021 Dongliang Mu <mudongliangabcd@gmail.com> ipack: tpci200: fix memory leak in the tpci200_register

The error handling code in tpci200_register does not free interface_regs
allocated by ioremap and the current version of error handling code is
problematic.

Fix this by refactoring the error handling code and free interface_regs
when necessary.

Fixes: 43986798fd50 ("ipack: add error handling for ioremap_nocache")
Cc: stable@vger.kernel.org
Reported-by: Dongliang Mu <mudongliangabcd@gmail.com>
Signed-off-by: Dongliang Mu <mudongliangabcd@gmail.com>
Link: https://lore.kernel.org/r/20210810100323.3938492-2-mudongliangabcd@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>