Tag: 01ebc12f5f2e88a1c6a5436b71a506ac2bf66d6b

UBI: eliminate update of list_for_each_entry loop cursor

Author: Julia Lawall <julia@diku.dk> list_for_each_entry uses its first argument to move from one element to the next, so modifying it can break the iteration. The variable re1 is already used within the loop as a temporary variable, and is not live here. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @r@ …

Continue reading