[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug in crypto/gen-cbc.h?



On Wed, Jan 17, 2001 at 12:49:11AM +0100, Martin Aumueller wrote:
> Hi!
> 
> As far as I can see the atomic flag is not honoured when
> doing an atomic cbc decryption. The code in crypto/gen-cbc.h
> reads:
>       if (current->need_resched) {
>          schedule();
>       }
> 
> But it should perhaps be changed to:
>       if (!atomic && current->need_resched) {
>          schedule();
>       }
> 

You're right. Fixed.

astor

-- 
Alexander Kjeldaas                Mail:  astor@fast.no
finger astor@master.kernel.org for OpenPGP key.

Linux-crypto:  cryptography in and on the Linux system
Archive:       http://mail.nl.linux.org/linux-crypto/