forked from rubenslte/android_kernel_samsung_msm8226
On an error, the list of pages is walked and destroyed. Since the list is being destroyed, use list_for_each_safe to avoid list corruption. Change-Id: Ia397a11d2d890b3458745820c79df2adaa088ade CRs-Fixed: 565183 Signed-off-by: Laura Abbott <lauraa@codeaurora.org>