diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
commit | ada47b5fe13d89735805b566185f4885f5a3f750 (patch) | |
tree | 644b88f8a71896307d71438e9b3af49126ffb22b /drivers/input/ff-core.c | |
parent | 43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff) | |
parent | 3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff) |
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'drivers/input/ff-core.c')
-rw-r--r-- | drivers/input/ff-core.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/input/ff-core.c b/drivers/input/ff-core.c index 38df81fcdc3a..03078c08309a 100644 --- a/drivers/input/ff-core.c +++ b/drivers/input/ff-core.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include <linux/module.h> | 29 | #include <linux/module.h> |
30 | #include <linux/mutex.h> | 30 | #include <linux/mutex.h> |
31 | #include <linux/sched.h> | 31 | #include <linux/sched.h> |
32 | #include <linux/slab.h> | ||
32 | 33 | ||
33 | /* | 34 | /* |
34 | * Check that the effect_id is a valid effect and whether the user | 35 | * Check that the effect_id is a valid effect and whether the user |
@@ -353,7 +354,7 @@ int input_ff_create(struct input_dev *dev, int max_effects) | |||
353 | EXPORT_SYMBOL_GPL(input_ff_create); | 354 | EXPORT_SYMBOL_GPL(input_ff_create); |
354 | 355 | ||
355 | /** | 356 | /** |
356 | * input_ff_free() - frees force feedback portion of input device | 357 | * input_ff_destroy() - frees force feedback portion of input device |
357 | * @dev: input device supporting force feedback | 358 | * @dev: input device supporting force feedback |
358 | * | 359 | * |
359 | * This function is only needed in error path as input core will | 360 | * This function is only needed in error path as input core will |
@@ -369,6 +370,7 @@ void input_ff_destroy(struct input_dev *dev) | |||
369 | if (ff->destroy) | 370 | if (ff->destroy) |
370 | ff->destroy(ff); | 371 | ff->destroy(ff); |
371 | kfree(ff->private); | 372 | kfree(ff->private); |
373 | kfree(ff->effects); | ||
372 | kfree(ff); | 374 | kfree(ff); |
373 | dev->ff = NULL; | 375 | dev->ff = NULL; |
374 | } | 376 | } |