oprofile: fix CPU unplug panic in ppro_stop()
authorEric Dumazet <dada1@cosmosbay.com>
Tue, 2 Dec 2008 06:21:21 +0000 (07:21 +0100)
committerRobert Richter <robert.richter@amd.com>
Wed, 3 Dec 2008 14:58:51 +0000 (15:58 +0100)
commit9ea84ad77d635bdb76c9a08f44f21a9af98359ee
treef1ec975d7c665d379d5b456a2a9951cdae59de2b
parent061e41fdb5047b1fb161e89664057835935ca1d2
oprofile: fix CPU unplug panic in ppro_stop()

If oprofile statically compiled in kernel, a cpu unplug triggers
a panic in ppro_stop(), because a NULL pointer is dereferenced.

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: Robert Richter <robert.richter@amd.com>
arch/x86/oprofile/op_model_ppro.c