diff options
| author | Hongling Zeng <zenghongling@kylinos.cn> | 2026-05-03 17:30:36 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-05-23 13:47:34 +0200 |
| commit | 5ad28496055858166eb2268344c8fda2c26d3561 (patch) | |
| tree | 21ff807b68293636be97dc99b42199b0dbf96693 /mm/tests/git@git.tavy.me:linux.git | |
| parent | c4faab452b3c1ada003d49c477609dd80523b9bf (diff) | |
gpib: cb7210: Fix region leak when request_irq fails
When request_irq() fails, the region allocated by request_region()
is not released. Fix this by calling release_region() before returning.
Smatch warning:
drivers/gpib/cb7210/cb7210.c:1068 cb_isa_attach() warn: 'config->ibbase'
from __request_region() not released on lines: 1064.
Fixes: 82e3508046f9 ("staging: gpib: cb7210 console messaging cleanup")
Signed-off-by: Hongling Zeng <zenghongling@kylinos.cn>
Link: https://patch.msgid.link/20260503093036.283546-1-zenghongling@kylinos.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm/tests/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
