From: Ingo Molnar Date: Tue, 18 Nov 2008 14:23:08 +0000 (+0100) Subject: x86, PEBS/DS: fix code flow in ds_request() X-Git-Tag: v2.6.28-rc6~14^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10db4ef7b9a65b86e4d047671a1886f4c101a859;p=pandora-kernel.git x86, PEBS/DS: fix code flow in ds_request() this compiler warning: arch/x86/kernel/ds.c: In function 'ds_request': arch/x86/kernel/ds.c:368: warning: 'context' may be used uninitialized in this function Shows that the code flow in ds_request() is buggy - it goes into the unlock+release-context path even when the context is not allocated yet. First allocate the context, then do the other checks. Also, take care with GFP allocations under the ds_lock spinlock. Cc: Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed