projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c53252b
)
drivers/misc/fsa9480.c: fix a leak of the IRQ during init failure
author
Axel Lin
<
[email protected]
>
Thu, 25 Aug 2011 22:59:19 +0000
(15:59 -0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 25 Aug 2011 23:25:35 +0000
(16:25 -0700)
Make sure we are passing the same cookie in all calls to
request_threaded_irq() and free_irq().
Signed-off-by: Axel Lin <
[email protected]
>
Cc: Donggeun Kim <
[email protected]
>
Cc: Minkyu Kang <
[email protected]
>
Cc: Kyungmin Park <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/misc/fsa9480.c
patch
|
blob
|
history
diff --git
a/drivers/misc/fsa9480.c
b/drivers/misc/fsa9480.c
index 5325a7e70dcf47b6a357b59146b5cfd24821455e..27dc0d21aafa36b73955105aa6097eb5c7836352 100644
(file)
--- a/
drivers/misc/fsa9480.c
+++ b/
drivers/misc/fsa9480.c
@@
-455,7
+455,7
@@
static int __devinit fsa9480_probe(struct i2c_client *client,
fail2:
if (client->irq)
- free_irq(client->irq,
NULL
);
+ free_irq(client->irq,
usbsw
);
fail1:
i2c_set_clientdata(client, NULL);
kfree(usbsw);
@@
-466,7
+466,7
@@
static int __devexit fsa9480_remove(struct i2c_client *client)
{
struct fsa9480_usbsw *usbsw = i2c_get_clientdata(client);
if (client->irq)
- free_irq(client->irq,
NULL
);
+ free_irq(client->irq,
usbsw
);
i2c_set_clientdata(client, NULL);
sysfs_remove_group(&client->dev.kobj, &fsa9480_group);