diff options
Diffstat (limited to 'apps/recorder')
-rw-r--r-- | apps/recorder/pcm_record.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/recorder/pcm_record.c b/apps/recorder/pcm_record.c index 799c733948..b5de670c0d 100644 --- a/apps/recorder/pcm_record.c +++ b/apps/recorder/pcm_record.c | |||
@@ -1416,7 +1416,7 @@ static void on_init_recording(void) | |||
1416 | static struct buflib_callbacks dummy_ops; | 1416 | static struct buflib_callbacks dummy_ops; |
1417 | talk_buffer_set_policy(TALK_BUFFER_LOOSE); | 1417 | talk_buffer_set_policy(TALK_BUFFER_LOOSE); |
1418 | pcmrec_handle = core_alloc_maximum("pcmrec", &rec_buffer_size, &dummy_ops); | 1418 | pcmrec_handle = core_alloc_maximum("pcmrec", &rec_buffer_size, &dummy_ops); |
1419 | if (pcmrec_handle) | 1419 | if (pcmrec_handle <= 0) |
1420 | /* someone is abusing core_alloc_maximum(). Fix this evil guy instead of | 1420 | /* someone is abusing core_alloc_maximum(). Fix this evil guy instead of |
1421 | * trying to handle OOM without hope */ | 1421 | * trying to handle OOM without hope */ |
1422 | panicf("%s(): OOM\n", __func__); | 1422 | panicf("%s(): OOM\n", __func__); |