From: Jon Mason Date: Fri, 22 Nov 2013 23:44:13 +0000 (-0700) Subject: ntb_netdev: Fix list_for_each_entry exit issue X-Git-Tag: v3.15-rc1~14^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fea903ecd799ec49a2ebc4cc8cfb7bb96fd31ddc;p=pandora-kernel.git ntb_netdev: Fix list_for_each_entry exit issue If list_for_each_entry exits without finding the ntb_device, the dev pointer will not be NULL. Thus the check will never be true and the code will not exit when it should. Correct this by adding a bool to determine when the device is found, otherwise exit in good fashion. Signed-off-by: Jon Mason --- Reading git-diff-tree failed