lkml.org 
[lkml]   [2015]   [May]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v6 1/5] random: Blocking API for accessing nonblocking_pool
Date
Am Mittwoch, 20. Mai 2015, 06:55:33 schrieb Herbert Xu:

Hi Herbert,
>
>You still need to handle the case where wait_event_interruptible
>returns an error. Otherwise this looks fine.

Thank you. I would suggest to add a while loop around the call that sets up
the wait if it terminated with ERESTARTSYS. This way we can maintain a void
function that is almost identical to the get_random_bytes function.


Ciao
Stephan


\
 
 \ /
  Last update: 2015-05-20 08:41    [W:0.041 / U:5.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site