From: Yan, Zheng Date: Fri, 27 Mar 2015 02:34:20 +0000 (+0800) Subject: locks: fix file_lock deletion inside loop X-Git-Tag: omap-for-v4.1/fixes-rc1~247^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a901125c65544aa05c52e1a7388c3900e8af105f;p=pandora-kernel.git locks: fix file_lock deletion inside loop locks_delete_lock_ctx() is called inside the loop, so we should use list_for_each_entry_safe. Fixes: 8634b51f6ca2 (locks: convert lease handling to file_lock_context) Signed-off-by: "Yan, Zheng" Signed-off-by: Jeff Layton --- Reading git-diff-tree failed