[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <51794990.6050405@zytor.com>
Date: Thu, 25 Apr 2013 08:19:44 -0700
From: "H. Peter Anvin" <hpa@...or.com>
To: "Ted Ts'o" <tytso@....edu>
CC: Linus Torvalds <torvalds@...ux-foundation.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
"H. Peter Anvin" <hpa@...ux.intel.com>,
stable <stable@...r.kernel.org>
Subject: Re: [PATCH 2/2] random: Account for entropy loss due to overwrites
On this subject, I assume this is a bug?
871
872 if (r->entropy_count / 8 >= nbytes + reserved)
873 r->entropy_count -= nbytes*8;
874 else
875 r->entropy_count = reserved;
876
[specifically the use of "reserved" as opposed to "reserved*8" on line 875?]
-hpa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists