]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/input/ff-core.c
[S390] vmlogrdr: module initialization function should return negative errors
[linux-2.6-omap-h63xx.git] / drivers / input / ff-core.c
index 783b3412ceadad32b77430c483ce3375faafc481..eebc72465fc9beb44d2ecfa77a78d24cbd31f891 100644 (file)
@@ -281,7 +281,8 @@ int input_ff_event(struct input_dev *dev, unsigned int type,
                break;
 
        default:
-               ff->playback(dev, code, value);
+               if (check_effect_access(ff, code, NULL) == 0)
+                       ff->playback(dev, code, value);
                break;
        }