Commit 98701dc19e0cf358d48208e994180bb8abad5079

Authored by Geert Uytterhoeven
Committed by Linus Torvalds
1 parent 29e3f34777

compat32: ignore the LOOP_CLR_FD ioctl

compat32: Ignore the LOOP_CLR_FD ioctl for the loop block device, to kill an
annoying kernel message when e.g. busybox umount is used.

Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff

... ... @@ -63,6 +63,7 @@
63 63 #include <linux/wireless.h>
64 64 #include <linux/atalk.h>
65 65 #include <linux/blktrace_api.h>
  66 +#include <linux/loop.h>
66 67  
67 68 #include <net/bluetooth/bluetooth.h>
68 69 #include <net/bluetooth/hci.h>
... ... @@ -3489,6 +3490,9 @@
3489 3490  
3490 3491 IGNORE_IOCTL(VFAT_IOCTL_READDIR_BOTH32)
3491 3492 IGNORE_IOCTL(VFAT_IOCTL_READDIR_SHORT32)
  3493 +
  3494 +/* loop */
  3495 +IGNORE_IOCTL(LOOP_CLR_FD)
3492 3496 };
3493 3497  
3494 3498 #define IOCTL_HASHSIZE 256