panic: skip get_random_bytes for RT_FULL in init_oops_id

This commit is contained in:
Thomas Gleixner 2014-10-31 10:54:18 -04:00 committed by Alibek Omarov
parent c1b1dbf736
commit 542cf4fcb9
1 changed files with 2 additions and 0 deletions

View File

@ -368,9 +368,11 @@ static u64 oops_id;
static int init_oops_id(void)
{
#ifndef CONFIG_PREEMPT_RT_FULL
if (!oops_id)
get_random_bytes(&oops_id, sizeof(oops_id));
else
#endif
oops_id++;
return 0;