diff options
| author | Ingo Molnar <[email protected]> | 2008-11-18 14:23:08 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2008-11-18 14:34:36 +0000 |
| commit | 10db4ef7b9a65b86e4d047671a1886f4c101a859 (patch) | |
| tree | 2d47105e6cf1e88c5a83def331c5d6302578e607 /lib/debugobjects.c | |
| parent | x86: add rdtsc barrier to TSC sync check (diff) | |
| download | kernel-10db4ef7b9a65b86e4d047671a1886f4c101a859.tar.gz kernel-10db4ef7b9a65b86e4d047671a1886f4c101a859.zip | |
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: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
