]> git.baikalelectronics.ru Git - kernel.git/commit
USB: mos7720: fix to use list_for_each_entry_safe() when delete items
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 21 Aug 2012 03:28:45 +0000 (11:28 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Sep 2012 23:52:08 +0000 (16:52 -0700)
commitb94081799280302630a8ee97df370131d730db3f
tree6505199543a8a2ecfc0a99b5899998fc469e3013
parente3e2227e601f332e0ea8bb708a205c2c56d2e2c5
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 <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/mos7720.c