The patch titled input: use -ENOSPC instead of -ENOMEM in iforce when device full has been added to the -mm tree. Its filename is input-use-enospc-instead-of-enomem-in-iforce-when-device-full.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: input: use -ENOSPC instead of -ENOMEM in iforce when device full From: Anssi Hannula <anssi.hannula@xxxxxxxxx> Use -ENOSPC instead of -ENOMEM when the iforce device doesn't have enough free memory for the new effect. All other drivers are already been using -ENOSPC, so this makes the behaviour coherent. Signed-off-by: Anssi Hannula <anssi.hannula@xxxxxxxxx> Cc: Dmitry Torokhov <dtor_core@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- drivers/input/joystick/iforce/iforce-ff.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff -puN drivers/input/joystick/iforce/iforce-ff.c~input-use-enospc-instead-of-enomem-in-iforce-when-device-full drivers/input/joystick/iforce/iforce-ff.c --- 25/drivers/input/joystick/iforce/iforce-ff.c~input-use-enospc-instead-of-enomem-in-iforce-when-device-full Fri May 26 14:18:50 2006 +++ 25-akpm/drivers/input/joystick/iforce/iforce-ff.c Fri May 26 14:18:50 2006 @@ -47,7 +47,7 @@ static int make_magnitude_modifier(struc iforce->device_memory.start, iforce->device_memory.end, 2L, NULL, NULL)) { mutex_unlock(&iforce->mem_mutex); - return -ENOMEM; + return -ENOSPC; } mutex_unlock(&iforce->mem_mutex); } @@ -80,7 +80,7 @@ static int make_period_modifier(struct i iforce->device_memory.start, iforce->device_memory.end, 2L, NULL, NULL)) { mutex_unlock(&iforce->mem_mutex); - return -ENOMEM; + return -ENOSPC; } mutex_unlock(&iforce->mem_mutex); } @@ -120,7 +120,7 @@ static int make_envelope_modifier(struct iforce->device_memory.start, iforce->device_memory.end, 2L, NULL, NULL)) { mutex_unlock(&iforce->mem_mutex); - return -ENOMEM; + return -ENOSPC; } mutex_unlock(&iforce->mem_mutex); } @@ -157,7 +157,7 @@ static int make_condition_modifier(struc iforce->device_memory.start, iforce->device_memory.end, 2L, NULL, NULL)) { mutex_unlock(&iforce->mem_mutex); - return -ENOMEM; + return -ENOSPC; } mutex_unlock(&iforce->mem_mutex); } _ Patches currently in -mm which might be from anssi.hannula@xxxxxxxxx are input-move-fixp-arithh-to-drivers-input.patch input-fix-accuracy-of-fixp-arithh.patch input-make-input-a-multi-object-module.patch input-new-force-feedback-interface.patch input-adapt-hid-force-feedback-drivers-for-the-new-interface.patch input-adapt-uinput-for-the-new-force-feedback-interface.patch input-adapt-iforce-driver-for-the-new-force-feedback-interface.patch input-force-feedback-driver-for-pid-devices.patch input-force-feedback-driver-for-zeroplus-devices.patch input-update-documentation-of-force-feedback.patch input-drop-the-remains-of-the-old-ff-interface.patch input-drop-the-old-pid-driver.patch input-use-enospc-instead-of-enomem-in-iforce-when-device-full.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html