From: Wei Yongjun Date: Tue, 21 Aug 2012 03:28:45 +0000 (+0800) Subject: USB: mos7720: fix to use list_for_each_entry_safe() when delete items X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~73^2~167 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67990472c77b06cc591dd59923542f64da91453d;p=pandora-kernel.git USB: mos7720: fix to use list_for_each_entry_safe() when delete items Since we will be removing items off the list using list_del() we need to use a safer version of the list_for_each_entry() macro aptly named list_for_each_entry_safe(). We should use the safe macro if the loop involves deletions of items. Signed-off-by: Wei Yongjun Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed