All of
 help / color / mirror / Atom feed
From: Christophe JAILLET <>
To: Dmitry Torokhov <>
	Christophe JAILLET <>,
Subject: [PATCH] Input: fm801-gp - Fix an error handling path
Date: Mon, 19 Dec 2022 22:36:47 +0100	[thread overview]
Message-ID: <> (raw)

This looks odd to call release_resource() for something allocated with
Use release_region() instead.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Christophe JAILLET <>
This patch is speculative and compile tested only.
 drivers/input/gameport/fm801-gp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/input/gameport/fm801-gp.c b/drivers/input/gameport/fm801-gp.c
index e785d36b1926..90ef1935084a 100644
--- a/drivers/input/gameport/fm801-gp.c
+++ b/drivers/input/gameport/fm801-gp.c
@@ -118,7 +118,7 @@ static void fm801_gp_remove(struct pci_dev *pci)
 	struct fm801_gp *gp = pci_get_drvdata(pci);
-	release_resource(gp->res_port);
+	release_region(gp->gameport->io, 0x10);

             reply	other threads:[~2022-12-19 21:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-19 21:36 Christophe JAILLET [this message]
2022-12-20 18:59 ` [PATCH] Input: fm801-gp - Fix an error handling path Dmitry Torokhov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.