]> git.karo-electronics.de Git - karo-tx-linux.git/commit
vfs: fix invalid ida_remove() call
authorTakashi Iwai <tiwai@suse.de>
Thu, 23 May 2013 00:37:05 +0000 (10:37 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 27 May 2013 06:08:57 +0000 (16:08 +1000)
commit84e858873bf653f72422623e3736631ac7f3d0d4
tree5c71d4ffa773a0f2053f8af93ec624b7db69aa9c
parent1d5c2b4489323be96da0170d90ad10e124925b36
vfs: fix invalid ida_remove() call

When the group id of a shared mount is not allocated, the umount still
tries to call mnt_release_group_id(), which eventually hits a kernel
warning at ida_remove() spewing a message like:

  ida_remove called for id=0 which is not allocated.

This patch fixes the bug simply checking the group id in the caller.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Reported-by: Cristian Rodríguez <crrodriguez@opensuse.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/pnode.c