epoll: clear the tfile_check_list on -ELOOP
epoll: clear the tfile_check_list on -ELOOP

An epoll_ctl(,EPOLL_CTL_ADD,,) operation can return '-ELOOP' to prevent
circular epoll dependencies from being created.  However, in that case we
do not properly clear the 'tfile_check_list'.  Thus, add a call to
clear_tfile_check_list() for the -ELOOP case.

Signed-off-by: Jason Baron <af9bd1db766a43cb09b647251c97dbddcd2e59dc@redhat.com>
Reported-by: Yurij M. Plotnikov <3ed6524a4f2381eaab85d81c8f52d62e5038fe16@oktetlabs.ru>
Cc: Nelson Elhage <5189bc64eef7cb2f8e15afbc1a394127239e0cab@nelhage.com>
Cc: Davide Libenzi <91df8000b8dca80eb036dde93edf593d4a91414e@xmailserver.org>
Tested-by: Alexandra N. Kossovsky <1e7a30605a9dc546f64219118b134194bb42c018@oktetlabs.ru>
Signed-off-by: Andrew Morton <5c1e68b099950c134891f0b6e179498a8ebe9cf9@linux-foundation.org>
Signed-off-by: Linus Torvalds <69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org>

TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs