From: Dan Carpenter Date: Wed, 31 Jul 2013 20:53:34 +0000 (-0700) Subject: rapidio: fix use after free in rio_unregister_scan() X-Git-Tag: v3.11-rc4~21^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f93f3c4ee48727713c3349b659adf8048fd4524b;p=pandora-kernel.git rapidio: fix use after free in rio_unregister_scan() We're freeing the list iterator so we can't move to the next entry. Since there is only one matching mport_id, we can just break after finding it. Signed-off-by: Dan Carpenter Reviewed-by: Ryan Mallon Acked-by: Alexandre Bounine Cc: Matt Porter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed