Skip to content
Commit fea903ec authored by Jon Mason's avatar Jon Mason
Browse files

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: default avatarJon Mason <jon.mason@intel.com>
parent 455c6fdb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment