From: Jacob Keller Date: Sat, 19 Jul 2014 07:17:16 +0000 (+0000) Subject: ixgbe: fix use of list_for_each in ixgbe_enumerate_functions X-Git-Tag: omap-for-v3.17/fixes-against-rc2~149^2~92^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8818970d8d361e358dd61e5d5774e67794cde791;p=pandora-kernel.git ixgbe: fix use of list_for_each in ixgbe_enumerate_functions Fix a bug in the misuse of the list_for_each macro to loop over every entry in the bus_list. Instead of attempting to loop over the list from a random entry point, go up to the bus and use the real list_head entry point. This prevents the possible read or write of unallocated or incorrectly addressed memory. Signed-off-by: Jacob Keller Tested-by: Phil Schmitt Signed-off-by: Jeff Kirsher --- Reading git-diff-tree failed