include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit...
[safe/jmp/linux-2.6] / drivers / input / ff-core.c
index 572d0a7..03078c0 100644 (file)
@@ -29,6 +29,7 @@
 #include <linux/module.h>
 #include <linux/mutex.h>
 #include <linux/sched.h>
+#include <linux/slab.h>
 
 /*
  * Check that the effect_id is a valid effect and whether the user
@@ -369,6 +370,7 @@ void input_ff_destroy(struct input_dev *dev)
                if (ff->destroy)
                        ff->destroy(ff);
                kfree(ff->private);
+               kfree(ff->effects);
                kfree(ff);
                dev->ff = NULL;
        }