aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorSean Rees <[email protected]>2017-02-08 22:30:59 +0000
committerLinus Torvalds <[email protected]>2017-02-08 23:41:43 +0000
commita810007afe239d59c1115fcaa06eb5b480f876e9 (patch)
tree25bbc5efa479af7cb1ca2defeeffb2040600a2fd /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentcpumask: use nr_cpumask_bits for parsing functions (diff)
downloadkernel-a810007afe239d59c1115fcaa06eb5b480f876e9.tar.gz
kernel-a810007afe239d59c1115fcaa06eb5b480f876e9.zip
mm/slub.c: fix random_seq offset destruction
Commit 210e7a43fa90 ("mm: SLUB freelist randomization") broke USB hub initialisation as described in https://bugzilla.kernel.org/show_bug.cgi?id=177551. Bail out early from init_cache_random_seq if s->random_seq is already initialised. This prevents destroying the previously computed random_seq offsets later in the function. If the offsets are destroyed, then shuffle_freelist will truncate page->freelist to just the first object (orphaning the rest). Fixes: 210e7a43fa90 ("mm: SLUB freelist randomization") Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Sean Rees <[email protected]> Reported-by: <[email protected]> Cc: Christoph Lameter <[email protected]> Cc: Pekka Enberg <[email protected]> Cc: David Rientjes <[email protected]> Cc: Joonsoo Kim <[email protected]> Cc: Thomas Garnier <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions