Skip to content

Commit

Permalink
Input: fm801-gp - fix use after free
Browse files Browse the repository at this point in the history
Fixes Coverity #id 916

Signed-off-by: Dmitry Torokhov <[email protected]>
  • Loading branch information
Dmitry Torokhov committed Jul 7, 2006
1 parent c794898 commit 6997561
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/input/gameport/fm801-gp.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ static int __devinit fm801_gp_probe(struct pci_dev *pci, const struct pci_device
gp->gameport = port;
gp->res_port = request_region(port->io, 0x10, "FM801 GP");
if (!gp->res_port) {
kfree(gp);
gameport_free_port(port);
printk(KERN_DEBUG "fm801-gp: unable to grab region 0x%x-0x%x\n",
port->io, port->io + 0x0f);
gameport_free_port(port);
kfree(gp);
return -EBUSY;
}

Expand Down

0 comments on commit 6997561

Please sign in to comment.