]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
gpu: nvgpu: Check for split_order > max_order
authorAlex Waterman <alexw@nvidia.com>
Wed, 10 Jun 2015 20:53:23 +0000 (13:53 -0700)
committerTerje Bergstrom <tbergstrom@nvidia.com>
Thu, 11 Jun 2015 18:20:06 +0000 (11:20 -0700)
commit8fbc6b5632085c5e8ed929348acaa03ff6367222
tree9b4d755b1cbe2a4300eb8629f7f75a5694002ddd
parent2852dd71a3e4592b76179e0e9059ed105bf8aa37
gpu: nvgpu: Check for split_order > max_order

When choosing an order of buddy to start splitting from (happens when
no buddies of the requested alloc order exist) don't sit in the while
loop past max_order. This makes no sense and hangs the system.

Bug 1647902

Change-Id: I6900597d24944d3170bc76cd75f33794b07707d1
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/755737
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
drivers/gpu/nvgpu/gk20a/gk20a_allocator.c