diff options
| author | Adrian Bunk <bunk@stusta.de> | 2004-12-11 20:31:12 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-12-11 20:31:12 -0800 |
| commit | d8bdd99e44183c56d0700fdb5ad7d523d8918aaa (patch) | |
| tree | a7e39ebdfc202e3cb2c80b0eaa5c029fd7a35f84 /drivers/input | |
| parent | 774820145543da4f98cd5c637c15e9fa24e51948 (diff) | |
[PATCH] fm801_gp_probe: fix use after free
The patch below by "Petri T. Koistinen" <petri.koistinen@iki.fi> in
Rusty's trivial patches is IMHO a candidate for 2.6.10 .
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/input')
| -rw-r--r-- | drivers/input/gameport/fm801-gp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/gameport/fm801-gp.c b/drivers/input/gameport/fm801-gp.c index 93849a6cc98d..ab0a151bd56b 100644 --- a/drivers/input/gameport/fm801-gp.c +++ b/drivers/input/gameport/fm801-gp.c @@ -98,8 +98,8 @@ static int __devinit fm801_gp_probe(struct pci_dev *pci, const struct pci_device pci_enable_device(pci); gp->gameport.io = pci_resource_start(pci, 0); if ((gp->res_port = request_region(gp->gameport.io, 0x10, "FM801 GP")) == NULL) { - kfree(gp); printk("unable to grab region 0x%x-0x%x\n", gp->gameport.io, gp->gameport.io + 0x0f); + kfree(gp); return -1; } |
