Home
last modified time | relevance | path

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

/linux/drivers/ipack/carriers/
H A Dtpci200.cdiff 50f05bd114a46a74726e432bf81079d3f13a55b7 Tue Aug 10 12:03:19 CEST 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>