]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
video: tegra: host: break out when we find the right pdev in nvhost list
authorBryan Wu <pengw@nvidia.com>
Fri, 8 Mar 2013 04:10:35 +0000 (20:10 -0800)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 20:15:25 +0000 (13:15 -0700)
commitab7ee123c7010b6bc7d1de4512b50d4cda8d7fee
tree2e0155acc6d471996c8496ecdac48f62319cf901
parent7355eaca2cd577984836b313dcdfbffdf3cf14b5
video: tegra: host: break out when we find the right pdev in nvhost list

Without this break, it will keep searching and cause kernel oops
because it's deleting a list item and not using a safe iterator.

Bug 1249358

Change-Id: I4e5d7af2be8d422a5888ced04b9ee89310a57f0e
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/226475
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Allen Martin <amartin@nvidia.com>
drivers/video/tegra/host/dev.c