Stephane Eranian
00d1d0b095
perf: Fix errors path in perf_output_begin()
...
In case the sampling buffer has no "payload" pages,
nr_pages is 0. The problem is that the error path in
perf_output_begin() skips to a label which assumes
perf_output_lock() has been issued which is not the
case. That triggers a WARN_ON() in
perf_output_unlock().
This patch fixes the problem by skipping
perf_output_unlock() in case data->nr_pages is 0.
Signed-off-by: Stephane Eranian <eranian@google.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <4bf13674.014fd80a.6c82.ffffb20c@mx.google.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2010-05-18 18:35:47 +02:00
..
2009-09-21 14:29:21 +02:00
2010-04-06 13:03:22 -07:00
2010-04-10 22:28:56 +02:00
2010-03-30 22:02:32 +09:00
2010-05-18 18:35:46 +02:00
2010-03-12 15:52:39 -08:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2009-06-24 00:02:38 -04:00
2010-03-30 22:02:32 +09:00
2010-04-05 13:19:45 -07:00
2009-12-12 13:08:14 +01:00
2009-12-10 09:42:48 +11:00
2010-04-30 12:03:17 +02:00
2010-03-24 16:31:19 -07:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-24 16:31:21 -07:00
2010-04-22 09:14:29 +10:00
2009-09-18 09:48:52 -07:00
2010-03-29 18:55:40 +02:00
2010-03-06 11:26:46 -08:00
2010-04-07 08:38:02 -07:00
2010-04-08 13:37:18 +02:00
2009-07-18 14:19:53 +02:00
2009-12-09 14:22:14 +01:00
2010-02-03 15:13:22 +01:00
2009-06-16 19:47:48 -07:00
2009-12-14 23:55:34 +01:00
2009-11-27 06:21:57 +01:00
2010-05-04 08:39:36 +02:00
2009-11-18 16:32:12 +01:00
2010-03-30 22:02:32 +09:00
2009-12-03 11:50:11 +01:00
2010-02-17 11:17:38 +09:00
2010-02-16 15:11:08 -08:00
2010-04-02 14:58:19 -05:00
2010-01-11 09:34:04 -08:00
2010-05-08 18:08:30 +02:00
2010-03-08 16:55:37 +01:00
2010-03-24 16:31:21 -07:00
2010-03-30 22:02:32 +09:00
2009-07-24 10:53:29 +02:00
2009-09-23 07:39:29 -07:00
2010-05-09 13:45:34 +02:00
2010-03-06 11:26:45 -08:00
2010-04-05 19:50:02 -07:00
2009-10-11 11:20:58 -07:00
2009-12-14 23:55:32 +01:00
2009-12-03 11:50:11 +01:00
2010-02-25 10:34:26 +01:00
2009-09-24 07:20:58 -07:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-06 11:26:33 -08:00
2010-03-12 16:04:50 -08:00
2010-05-18 18:35:47 +02:00
2010-03-30 22:02:32 +09:00
2010-03-13 14:43:01 -08:00
2009-10-14 15:31:10 +02:00
2010-03-26 15:10:38 -07:00
2010-02-05 14:54:10 +01:00
2010-03-06 11:26:33 -08:00
2009-09-20 20:15:40 +02:00
2010-03-26 11:33:55 +01:00
2010-02-10 17:47:17 -08:00
2010-04-19 08:37:19 +02:00
2009-11-22 18:58:16 +01:00
2010-03-03 07:34:18 -08:00
2010-02-28 09:17:42 +01:00
2010-02-25 10:34:57 +01:00
2010-02-27 09:53:52 +01:00
2010-03-11 13:38:01 +01:00
2010-03-06 11:26:32 -08:00
2010-03-30 22:02:32 +09:00
2010-03-23 13:33:50 -07:00
2009-12-14 23:55:33 +01:00
2009-12-14 23:55:33 +01:00
2009-12-15 09:04:36 +01:00
2010-03-30 22:02:32 +09:00
2009-12-14 23:55:33 +01:00
2010-04-02 20:06:40 +02:00
2010-03-01 09:29:58 +01:00
2009-12-09 10:03:07 +01:00
2010-01-21 13:40:09 +01:00
2010-03-13 14:46:18 -08:00
2010-05-07 11:30:30 +02:00
2010-03-06 11:26:33 -08:00
2009-12-01 08:20:31 -08:00
2010-03-29 09:13:30 -07:00
2010-03-29 09:14:47 -07:00
2010-03-30 22:02:32 +09:00
2010-02-03 18:17:40 +01:00
2010-03-21 19:30:13 +01:00
2009-12-14 23:55:33 +01:00
2010-03-30 22:02:32 +09:00
2010-02-17 11:17:38 +09:00
2010-03-12 15:52:32 -08:00
2010-04-24 11:31:24 -07:00
2010-03-30 22:02:32 +09:00
2009-12-03 12:14:38 -08:00
2010-03-12 15:53:10 -08:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2009-09-21 15:14:55 +02:00
2010-03-06 11:26:23 -08:00
2009-09-23 18:13:10 -07:00
2009-12-02 10:22:59 +01:00
2010-01-21 13:40:18 +01:00
2009-11-12 02:04:55 -08:00
2009-06-18 13:03:55 -07:00
2009-08-10 14:43:09 +02:00
2010-04-30 07:24:51 +02:00